summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/02-changeCSpass.rb
blob: 22ef07907dd66e05b2cd67a1cd3127e3b7c087fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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