summaryrefslogtreecommitdiffstats
path: root/mcp/reclass/scripts/openstack.sh
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2017-06-29 15:52:28 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2017-07-03 11:18:25 +0400
commite49e91d7aa740437c01e6531ef648d2dae97c11d (patch)
tree4227d9f205f59d5a6a1cdf086ad689dfc4bcb477 /mcp/reclass/scripts/openstack.sh
parent3fb5e5454045860463a92c18d4d859967002e6fb (diff)
Rewrite infra deployment scripts
* bring in scenario files * shift infra code into functions Change-Id: I650a26d03d842c3afcc7fcb97b84ef4826827a38 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/reclass/scripts/openstack.sh')
-rwxr-xr-xmcp/reclass/scripts/openstack.sh44
1 files changed, 0 insertions, 44 deletions
diff --git a/mcp/reclass/scripts/openstack.sh b/mcp/reclass/scripts/openstack.sh
deleted file mode 100755
index 9e636ddaa..000000000
--- a/mcp/reclass/scripts/openstack.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-#
-# Deploy Openstack
-#
-
-ssh $SSH_OPTS ubuntu@$SALT_MASTER bash -s << OPENSTACK_INSTALL_END
- sudo -i
-
- salt-call state.apply salt
- salt '*' state.apply salt || salt '*' state.apply salt
-
- salt -C 'I@salt:master' state.sls linux
- salt -C '* and not cfg01*' state.sls linux
-
- salt '*' state.sls ntp
-
- salt -C 'I@rabbitmq:server' state.sls rabbitmq
- salt -C 'I@rabbitmq:server' cmd.run "rabbitmqctl status"
-
- salt -C 'I@mysql:server' state.sls mysql
-
- salt -C 'I@memcached:server' state.sls memcached
-
- salt -C 'I@keystone:server' state.sls keystone.server
- salt -C 'I@keystone:server' cmd.run "systemctl restart apache2"
- while true; do salt -C 'I@keystone:server' state.sls keystone.client && break; done
- salt -C 'I@keystone:server' cmd.run ". /root/keystonercv3; openstack service list"
-
- salt -C 'I@glance:server' state.sls glance
- salt -C 'I@nova:controller' state.sls nova
- salt -C 'I@heat:server' state.sls heat
- salt -C 'I@cinder:controller' state.sls cinder
-
- salt -C 'I@neutron:server' state.sls neutron
- salt -C 'I@neutron:gateway' state.sls neutron
-
- salt -C 'I@nova:compute' state.sls nova
- salt -C 'I@neutron:compute' state.sls neutron
-
- salt 'ctl01*' cmd.run ". /root/keystonercv3; openstack compute service list; openstack network agent list; openstack stack list; openstack volume list"
-
- salt 'ctl01*' cmd.run ". /root/keystonercv3; openstack network create --share --external --provider-network-type flat --provider-physical-network physnet1 floating_net"
- salt 'ctl01*' cmd.run ". /root/keystonercv3; openstack subnet create --gateway 10.16.0.1 --no-dhcp --allocation-pool start=10.16.0.130,end=10.16.0.254 --network floating_net --subnet-range 10.16.0.0/24 floating_subnet"
-OPENSTACK_INSTALL_END