blob: d14e9a223219ebc57d52eff7c1085481deab2fc2 [file] [log] [blame]
Yuli Shlosberg0875ce02018-01-25 13:53:36 +02001template "/tmp/create_cassandra_user.sh" do
2 source "create_cassandra_user.sh.erb"
3 sensitive true
4 mode 0755
5 variables({
Areli, Fuss (af732p)c033cdc2018-04-24 13:59:00 +03006 :cassandra_ip => node['Nodes']['CS'].first,
Yuli Shlosberg0875ce02018-01-25 13:53:36 +02007 :cassandra_pwd => ENV['CS_PASSWORD'],
8 :sdc_usr => ENV['SDC_USER'],
9 :sdc_pwd => ENV['SDC_PASSWORD']
10 })
11end
12
13
14bash "create-sdc-user" do
15 code <<-EOH
16 cd /tmp ; /tmp/create_cassandra_user.sh
17 EOH
18end