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