1 cookbook_file "/tmp/sdctool.tar" do
10 /bin/tar xf /tmp/sdctool.tar -C /tmp
15 template "titan.properties" do
17 path "/tmp/sdctool/config/titan.properties"
18 source "titan.properties.erb"
21 :DC_NAME => node['cassandra']['datacenter_name']+node.chef_environment,
22 :cassandra_ip => node['Nodes']['CS'].first,
23 :cassandra_pwd => node['cassandra'][:cassandra_password],
24 :cassandra_usr => node['cassandra'][:cassandra_user],
25 :titan_connection_timeout => node['cassandra']['titan_connection_timeout']
30 template "/tmp/sdctool/config/configuration.yaml" do
32 source "configuration.yaml.erb"
35 :host_ip => node['Nodes']['BE'],
36 :catalog_port => node['BE'][:http_port],
37 :ssl_port => node['BE'][:https_port],
38 :cassandra_ip => node['Nodes']['CS'].first,
39 :cassandra_port => node['cassandra']['cassandra_port'],
41 :DC_NAME => node['cassandra']['datacenter_name']+node.chef_environment,
42 :titan_Path => "/tmp/sdctool/config/",
43 :socket_connect_timeout => node['cassandra']['socket_connect_timeout'],
44 :socket_read_timeout => node['cassandra']['socket_read_timeout'],
45 :cassandra_pwd => node['cassandra'][:cassandra_password],
46 :cassandra_usr => node['cassandra'][:cassandra_user]
51 template "/tmp/sdctool/config/elasticsearch.yml" do
53 source "elasticsearch.yml.erb"
56 :elastic_ip => node['Nodes']['ES']
60 bash "excuting-schema-creation" do
63 chmod +x /tmp/sdctool/scripts/schemaCreation.sh
64 /tmp/sdctool/scripts/schemaCreation.sh /tmp/sdctool/config
68 bash "excuting-titanSchemaCreation.sh" do
70 chmod +x /tmp/sdctool/scripts/titanSchemaCreation.sh
71 /tmp/sdctool/scripts/titanSchemaCreation.sh /tmp/sdctool/config