blob: 84b0cb2b40f2e483caae3d6f967f07527f8b4628 [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({
Tal Gitelmanc4d387d2019-03-28 11:00:54 +02006 :cassandra_ip => node['Nodes']['CS'].first,
7 :cassandra_port => node['cassandra']['cassandra_port'],
8 :cassandra_pwd => ENV['CS_PASSWORD'],
9 :sdc_usr => ENV['SDC_USER'],
10 :sdc_pwd => ENV['SDC_PASSWORD']
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020011 })
12end
13
14
15bash "create-sdc-user" do
16 code <<-EOH
17 cd /tmp ; /tmp/create_cassandra_user.sh
18 EOH
19end