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'],
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'],
26 :replication_factor => node['cassandra']['replication_factor']
31 template "/tmp/sdctool/config/configuration.yaml" do
33 source "configuration.yaml.erb"
36 :host_ip => node['Nodes']['BE'],
37 :catalog_port => node['BE'][:http_port],
38 :ssl_port => node['BE'][:https_port],
39 :cassandra_ip => node['Nodes']['CS'].first,
40 :cassandra_port => node['cassandra']['cassandra_port'],
41 :rep_factor => node['cassandra']['replication_factor'],
42 :DC_NAME => node['cassandra']['datacenter_name'],
43 :titan_Path => "/tmp/sdctool/config/",
44 :socket_connect_timeout => node['cassandra']['socket_connect_timeout'],
45 :socket_read_timeout => node['cassandra']['socket_read_timeout'],
46 :cassandra_pwd => node['cassandra'][:cassandra_password],
47 :cassandra_usr => node['cassandra'][:cassandra_user]
52 template "/tmp/sdctool/config/elasticsearch.yml" do
54 source "elasticsearch.yml.erb"
57 :elastic_ip => node['Nodes']['ES']
61 bash "excuting-schema-creation" do
64 chmod +x /tmp/sdctool/scripts/schemaCreation.sh
65 /tmp/sdctool/scripts/schemaCreation.sh /tmp/sdctool/config
69 bash "excuting-titanSchemaCreation.sh" do
71 chmod +x /tmp/sdctool/scripts/titanSchemaCreation.sh
72 /tmp/sdctool/scripts/titanSchemaCreation.sh /tmp/sdctool/config