aboutsummaryrefslogtreecommitdiffstats
path: root/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/recipes/01-createCsUser.rb
blob: 84b0cb2b40f2e483caae3d6f967f07527f8b4628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
template "/tmp/create_cassandra_user.sh" do
  source "create_cassandra_user.sh.erb"
  sensitive true
  mode 0755
  variables({
     :cassandra_ip      => node['Nodes']['CS'].first,
     :cassandra_port    => node['cassandra']['cassandra_port'],
     :cassandra_pwd     => ENV['CS_PASSWORD'],
     :sdc_usr           => ENV['SDC_USER'],
     :sdc_pwd           => ENV['SDC_PASSWORD']
  })
end


bash "create-sdc-user" do
   code <<-EOH
     cd /tmp ; /tmp/create_cassandra_user.sh
   EOH
end