Cassandra OOM Alignment
Change-Id: If9792919dba17936965b45361888a44a12a76b67
Issue-ID: SDC-911
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
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
new file mode 100644
index 0000000..22ef079
--- /dev/null
+++ b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/02-changeCSpass.rb
@@ -0,0 +1,16 @@
+template "/tmp/change_cassandra_pass.sh" do
+ source "change_cassandra_pass.sh.erb"
+ sensitive true
+ mode 0755
+ variables({
+ :cassandra_ip => node['Nodes']['CS'],
+ :cassandra_pwd => ENV['CS_PASSWORD']
+ })
+end
+
+
+bash "change-cassandra-pass" do
+ code <<-EOH
+ cd /tmp ; /tmp/change_cassandra_pass.sh
+ EOH
+end
\ No newline at end of file