blob: 3c67715922021fef15aa0aefde3d019bee2af287 [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
sebdetdf353be2020-09-21 22:13:05 +020014execute "create-sdc-user" do
15 command "/tmp/create_cassandra_user.sh"
16 cwd "/tmp/"
17 action :run
18end