Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | template "/tmp/create_dox_keyspace.sh" do |
Areli Fuss | 7d2c605 | 2017-09-25 18:24:04 +0300 | [diff] [blame] | 2 | source "create_dox_keyspace.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, |
shrek2000 | 0594c41 | 2020-01-30 14:52:49 +0200 | [diff] [blame] | 7 | :cassandra_port => node['cassandra'][:cassandra_port], |
mahendrr | f454e70 | 2019-04-18 10:39:30 +0000 | [diff] [blame] | 8 | :DC_NAME => node['cassandra']['datacenter_name'], |
Tal Gitelman | c4d387d | 2019-03-28 11:00:54 +0200 | [diff] [blame] | 9 | :cassandra_pwd => node['cassandra'][:cassandra_password], |
| 10 | :cassandra_usr => node['cassandra'][:cassandra_user] |
Areli Fuss | 7d2c605 | 2017-09-25 18:24:04 +0300 | [diff] [blame] | 11 | }) |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 12 | end |
| 13 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 14 | |
Areli Fuss | 7d2c605 | 2017-09-25 18:24:04 +0300 | [diff] [blame] | 15 | remote_directory '/tmp/tools' do |
| 16 | source 'tools' |
| 17 | mode '0755' |
| 18 | files_mode '0755' |
| 19 | action :create |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 20 | end |
| 21 | |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame] | 22 | execute "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 |
| 27 | end |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 28 | |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame] | 29 | execute "create-DOX-schema" do |
Areli Fuss | 7d2c605 | 2017-09-25 18:24:04 +0300 | [diff] [blame] | 30 | ignore_failure true |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame] | 31 | command "chmod +x /tmp/create_dox_keyspace.sh && /tmp/create_dox_keyspace.sh" |
| 32 | cwd "/tmp" |
| 33 | action :run |
| 34 | end |