blob: 68c1870832ce3fca8e01415a3fcf88bff99b5c7d [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({
6 :cassandra_ip => "HOSTIP",
7 :DC_NAME => node['cassandra'][:cluster_name]+node.chef_environment
8 })
Michael Lando451a3402017-02-19 10:28:42 +02009end
10
Michael Landoed64b5e2017-06-09 03:19:04 +030011
Areli Fuss7d2c6052017-09-25 18:24:04 +030012remote_directory '/tmp/tools' do
13 source 'tools'
14 mode '0755'
15 files_mode '0755'
16 action :create
Michael Landoed64b5e2017-06-09 03:19:04 +030017end
18
19
Areli Fuss7d2c6052017-09-25 18:24:04 +030020bash "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
27end
28
Michael Landoed64b5e2017-06-09 03:19:04 +030029bash "create-DOX-schema" do
Areli Fuss7d2c6052017-09-25 18:24:04 +030030 ignore_failure true
31 code <<-EOH
Michael Landoed64b5e2017-06-09 03:19:04 +030032 cd /tmp
33 chmod +x /tmp/create_dox_keyspace.sh
34 /tmp/create_dox_keyspace.sh
Areli Fuss7d2c6052017-09-25 18:24:04 +030035 EOH
Michael Landoed64b5e2017-06-09 03:19:04 +030036end