Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | template "/tmp/create_cassandra_user.sh" do |
| 2 | source "create_cassandra_user.sh.erb" |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 3 | sensitive true |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 4 | mode 0755 |
| 5 | variables({ |
Michael Lando | 50ffa6b | 2018-01-08 10:52:07 +0200 | [diff] [blame] | 6 | :cassandra_ip => "HOSTIP", |
| 7 | :cassandra_pwd => node['cassandra'][:cassandra_password], |
| 8 | :cassandra_usr => node['cassandra'][:cassandra_user] |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 9 | }) |
| 10 | end |
| 11 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 12 | |
| 13 | bash "create-sdc-user" do |
| 14 | code <<-EOH |
| 15 | cd /tmp ; /tmp/create_cassandra_user.sh |
| 16 | EOH |
| 17 | end |