Corrected typos in chef scripts.
Corrected typos and checkstyles.
Issue-ID: SDC-2424
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
Change-Id: If2464645dad7da3fa7706e35e4ccace3ece6aeb4
diff --git a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/03-schemaCreation.rb b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/03-schemaCreation.rb
index 4de50f6..b046b0d 100644
--- a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/03-schemaCreation.rb
+++ b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/03-schemaCreation.rb
@@ -18,12 +18,12 @@
source "janusgraph.properties.erb"
mode "0755"
variables({
- :DC_NAME => node['cassandra']['datacenter_name'],
- :cassandra_ip => node['Nodes']['CS'].first,
- :cassandra_pwd => node['cassandra'][:cassandra_password],
- :cassandra_usr => node['cassandra'][:cassandra_user],
+ :DC_NAME => node['cassandra']['datacenter_name'],
+ :cassandra_ip => node['Nodes']['CS'].first,
+ :cassandra_pwd => node['cassandra'][:cassandra_password],
+ :cassandra_usr => node['cassandra'][:cassandra_user],
:janusgraph_connection_timeout => node['cassandra']['janusgraph_connection_timeout'],
- :replication_factor => node['cassandra']['replication_factor']
+ :replication_factor => node['cassandra']['replication_factor']
})
end
@@ -58,7 +58,7 @@
})
end
-bash "excuting-schema-creation" do
+bash "executing-schema-creation" do
code <<-EOH
cd /tmp
chmod +x /tmp/sdctool/scripts/schemaCreation.sh
@@ -66,7 +66,7 @@
EOH
end
-bash "excuting-janusGraphSchemaCreation.sh" do
+bash "executing-janusGraphSchemaCreation.sh" do
code <<-EOH
chmod +x /tmp/sdctool/scripts/janusGraphSchemaCreation.sh
/tmp/sdctool/scripts/janusGraphSchemaCreation.sh /tmp/sdctool/config
diff --git a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importComformance.rb b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb
similarity index 95%
rename from asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importComformance.rb
rename to asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb
index 188aa1d..0490c89 100644
--- a/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importComformance.rb
+++ b/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/04-importConformance.rb
@@ -4,7 +4,7 @@
-bash "import-Comformance" do
+bash "import-Conformance" do
cwd "#{working_directory}"
code <<-EOH
conf_dir=/tmp/sdctool/config
diff --git a/asdctool/sdc-cassandra-init/chef-solo/roles/cassandra-actions.json b/asdctool/sdc-cassandra-init/chef-solo/roles/cassandra-actions.json
index b06e487..5104d1f 100644
--- a/asdctool/sdc-cassandra-init/chef-solo/roles/cassandra-actions.json
+++ b/asdctool/sdc-cassandra-init/chef-solo/roles/cassandra-actions.json
@@ -12,7 +12,7 @@
"run_list": [
"recipe[cassandra-actions::01-createCsUser]",
"recipe[cassandra-actions::03-schemaCreation]",
- "recipe[cassandra-actions::04-importComformance]"
+ "recipe[cassandra-actions::04-importConformance]"
],
"env_run_lists": {