blob: 5f740a890906e2d5a3504df09beba5a058a12501 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001template "/tmp/create_dox_keyspace.sh" do
Areli Fuss7d2c6052017-09-25 18:24:04 +03002 source "create_dox_keyspace.sh.erb"
3 sensitive true
4 mode 0755
5 variables({
Tal Gitelmanc4d387d2019-03-28 11:00:54 +02006 :cassandra_ip => node['Nodes']['CS'].first,
shrek20000594c412020-01-30 14:52:49 +02007 :cassandra_port => node['cassandra'][:cassandra_port],
mahendrrf454e702019-04-18 10:39:30 +00008 :DC_NAME => node['cassandra']['datacenter_name'],
Tal Gitelmanc4d387d2019-03-28 11:00:54 +02009 :cassandra_pwd => node['cassandra'][:cassandra_password],
10 :cassandra_usr => node['cassandra'][:cassandra_user]
Areli Fuss7d2c6052017-09-25 18:24:04 +030011 })
Michael Lando451a3402017-02-19 10:28:42 +020012end
13
Michael Landoed64b5e2017-06-09 03:19:04 +030014
Areli Fuss7d2c6052017-09-25 18:24:04 +030015remote_directory '/tmp/tools' do
16 source 'tools'
17 mode '0755'
18 files_mode '0755'
19 action :create
Michael Landoed64b5e2017-06-09 03:19:04 +030020end
21
sebdetdf353be2020-09-21 22:13:05 +020022execute "onboard-db-schema-creation" do
23 ignore_failure true
24 command "chmod +x onboard-db-schema-creation.sh && sh -x /tmp/tools/build/scripts/onboard-db-schema-creation.sh"
25 cwd "/tmp/tools/build/scripts"
26 action :run
27end
Michael Landoed64b5e2017-06-09 03:19:04 +030028
sebdetdf353be2020-09-21 22:13:05 +020029execute "create-DOX-schema" do
Areli Fuss7d2c6052017-09-25 18:24:04 +030030 ignore_failure true
sebdetdf353be2020-09-21 22:13:05 +020031 command "chmod +x /tmp/create_dox_keyspace.sh && /tmp/create_dox_keyspace.sh"
32 cwd "/tmp"
33 action :run
34end