aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks
diff options
context:
space:
mode:
authork.kedron <k.kedron@partner.samsung.com>2019-07-09 13:02:08 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-07-10 12:43:55 +0000
commit004fb6486e9f31a2f8398051c77dcd8ce86e20d2 (patch)
treedd120428486e42614352262e174e8d4cb61e8bc9 /sdc-os-chef/sdc-cassandra/chef-repo/cookbooks
parent533eb74d88fef53ce652e97c1251dac63f392760 (diff)
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
Diffstat (limited to 'sdc-os-chef/sdc-cassandra/chef-repo/cookbooks')
-rw-r--r--sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/01-configureCassandra.rb30
-rw-r--r--sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/02-changeCSpass.rb6
2 files changed, 18 insertions, 18 deletions
diff --git a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/01-configureCassandra.rb b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/01-configureCassandra.rb
index 5b05e9be57..21d43b18ef 100644
--- a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/01-configureCassandra.rb
+++ b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/01-configureCassandra.rb
@@ -20,20 +20,20 @@ template "cassandra-yaml-config" do
owner "cassandra"
group "cassandra"
mode "0755"
- variables ({
- :cassandra_port => node['cassandra']['cassandra_port'],
- :cassandra_cluster => cluster_name,
- :cassandra_data_dir => node['cassandra'][:data_dir],
- :cassandra_commitlog_dir => node['cassandra'][:commitlog_dir],
- :cassandra_cache_dir => node['cassandra'][:cache_dir],
- :seeds_address => cas_ips,
- :listen_address => application_host,
- :broadcast_address => application_host,
- :broadcast_rpc_address => application_host,
- :rpc_address => "0.0.0.0",
- :num_tokens => node['cassandra'][:num_tokens],
- :internode_encryption => "none",
- :cassandra_truststore_dir => "/etc/cassandra/cs_trust"
+ variables({
+ :cassandra_port => node['cassandra']['cassandra_port'],
+ :cassandra_cluster => cluster_name,
+ :cassandra_data_dir => node['cassandra'][:data_dir],
+ :cassandra_commitlog_dir => node['cassandra'][:commitlog_dir],
+ :cassandra_cache_dir => node['cassandra'][:cache_dir],
+ :seeds_address => cas_ips,
+ :listen_address => application_host,
+ :broadcast_address => application_host,
+ :broadcast_rpc_address => application_host,
+ :rpc_address => "0.0.0.0",
+ :num_tokens => node['cassandra'][:num_tokens],
+ :internode_encryption => "none",
+ :cassandra_truststore_dir => "/etc/cassandra/cs_trust"
})
end
@@ -44,7 +44,7 @@ template "cassandra-rackdc.properties" do
owner "cassandra"
group "cassandra"
mode "0755"
- variables ({
+ variables({
:dc => node['cassandra']['datacenter_name'],
:rack => "Rack"+"#{rackNum}"
})
diff --git a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/02-changeCSpass.rb b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/02-changeCSpass.rb
index ae582cfe25..8ebdeef7dd 100644
--- a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/02-changeCSpass.rb
+++ b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/02-changeCSpass.rb
@@ -11,9 +11,9 @@ template "/tmp/change_cassandra_pass.sh" do
sensitive true
mode 0755
variables({
- :cassandra_ip => application_host,
- :cassandra_pwd => ENV['CS_PASSWORD'],
- :cassandra_port => node['cassandra']['cassandra_port']
+ :cassandra_ip => application_host,
+ :cassandra_pwd => ENV['CS_PASSWORD'],
+ :cassandra_port => node['cassandra']['cassandra_port']
})
end