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({ |
Tal Gitelman | c4d387d | 2019-03-28 11:00:54 +0200 | [diff] [blame] | 6 | :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 Shlosberg | 0875ce0 | 2018-01-25 13:53:36 +0200 | [diff] [blame] | 11 | }) |
| 12 | end |
| 13 | |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame] | 14 | execute "create-sdc-user" do |
| 15 | command "/tmp/create_cassandra_user.sh" |
| 16 | cwd "/tmp/" |
| 17 | action :run |
| 18 | end |