Yuli Shlosberg | 0875ce0 | 2018-01-25 13:53:36 +0200 | [diff] [blame^] | 1 | template "/tmp/change_cassandra_pass.sh" do |
2 | source "change_cassandra_pass.sh.erb" | ||||
3 | sensitive true | ||||
4 | mode 0755 | ||||
5 | variables({ | ||||
6 | :cassandra_ip => node['Nodes']['CS'], | ||||
7 | :cassandra_pwd => ENV['CS_PASSWORD'] | ||||
8 | }) | ||||
9 | end | ||||
10 | |||||
11 | |||||
12 | bash "change-cassandra-pass" do | ||||
13 | code <<-EOH | ||||
14 | cd /tmp ; /tmp/change_cassandra_pass.sh | ||||
15 | EOH | ||||
16 | end |