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 | |
| 14 | |
| 15 | bash "create-sdc-user" do |
| 16 | code <<-EOH |
| 17 | cd /tmp ; /tmp/create_cassandra_user.sh |
| 18 | EOH |
| 19 | end |