1 cookbook_file "/tmp/sdctool.tar" do
10 /bin/tar xf /tmp/sdctool.tar -C /tmp
15 template "janusgraph.properties" do
17 path "/tmp/sdctool/config/janusgraph.properties"
18 source "janusgraph.properties.erb"
21 :DC_NAME => node['cassandra']['datacenter_name'],
22 :cassandra_ip => node['Nodes']['CS'].first,
23 :cassandra_port_num => node['cassandra'][:cassandra_port],
24 :janus_connection_timeout => node['cassandra'][:janusgraph_connection_timeout],
25 :cassandra_pwd => node['cassandra'][:cassandra_password],
26 :cassandra_usr => node['cassandra'][:cassandra_user],
27 :replication_factor => node['cassandra']['replication_factor']
32 template "/tmp/sdctool/config/configuration.yaml" do
34 source "configuration.yaml.erb"
37 :host_ip => node['Nodes']['BE'],
38 :catalog_port => node['BE'][:http_port],
39 :ssl_port => node['BE'][:https_port],
40 :cassandra_ip => node['Nodes']['CS'].first,
41 :cassandra_port => node['cassandra']['cassandra_port'],
42 :rep_factor => node['cassandra']['replication_factor'],
43 :DC_NAME => node['cassandra']['datacenter_name'],
44 :janusgraph_Path => "/tmp/sdctool/config/",
45 :socket_connect_timeout => node['cassandra']['socket_connect_timeout'],
46 :socket_read_timeout => node['cassandra']['socket_read_timeout'],
47 :cassandra_pwd => node['cassandra'][:cassandra_password],
48 :cassandra_usr => node['cassandra'][:cassandra_user]
54 bash "executing-schema-creation" do
57 chmod +x /tmp/sdctool/scripts/schemaCreation.sh
58 /tmp/sdctool/scripts/schemaCreation.sh /tmp/sdctool/config
62 bash "executing-janusGraphSchemaCreation.sh" do
64 chmod +x /tmp/sdctool/scripts/janusGraphSchemaCreation.sh
65 /tmp/sdctool/scripts/janusGraphSchemaCreation.sh /tmp/sdctool/config