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({ |
| 6 | :cassandra_ip => "HOSTIP", |
| 7 | :DC_NAME => node['cassandra'][:cluster_name]+node.chef_environment |
| 8 | }) |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 9 | end |
| 10 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 11 | |
Areli Fuss | 7d2c605 | 2017-09-25 18:24:04 +0300 | [diff] [blame^] | 12 | remote_directory '/tmp/tools' do |
| 13 | source 'tools' |
| 14 | mode '0755' |
| 15 | files_mode '0755' |
| 16 | action :create |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 17 | end |
| 18 | |
| 19 | |
Areli Fuss | 7d2c605 | 2017-09-25 18:24:04 +0300 | [diff] [blame^] | 20 | bash "onboard-db-schema-creation" do |
| 21 | ignore_failure true |
| 22 | code <<-EOH |
| 23 | cd /tmp/tools/build/scripts |
| 24 | chmod +x onboard-db-schema-creation.sh |
| 25 | /tmp/tools/build/scripts/onboard-db-schema-creation.sh |
| 26 | EOH |
| 27 | end |
| 28 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 29 | bash "create-DOX-schema" do |
Areli Fuss | 7d2c605 | 2017-09-25 18:24:04 +0300 | [diff] [blame^] | 30 | ignore_failure true |
| 31 | code <<-EOH |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 32 | cd /tmp |
| 33 | chmod +x /tmp/create_dox_keyspace.sh |
| 34 | /tmp/create_dox_keyspace.sh |
Areli Fuss | 7d2c605 | 2017-09-25 18:24:04 +0300 | [diff] [blame^] | 35 | EOH |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 36 | end |