blob: d9041f28417bc91b50d0270f10f52894169f3853 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001template "/tmp/create_cassandra_user.sh" do
2 source "create_cassandra_user.sh.erb"
Michael Landoed64b5e2017-06-09 03:19:04 +03003 sensitive true
Michael Lando451a3402017-02-19 10:28:42 +02004 mode 0755
5 variables({
Michael Lando50ffa6b2018-01-08 10:52:07 +02006 :cassandra_ip => "HOSTIP",
7 :cassandra_pwd => node['cassandra'][:cassandra_password],
8 :cassandra_usr => node['cassandra'][:cassandra_user]
Michael Lando451a3402017-02-19 10:28:42 +02009 })
10end
11
Michael Landoed64b5e2017-06-09 03:19:04 +030012
13bash "create-sdc-user" do
14 code <<-EOH
15 cd /tmp ; /tmp/create_cassandra_user.sh
16 EOH
17end