summaryrefslogtreecommitdiffstats
path: root/mcp/reclass/scripts/openstack.sh
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2017-06-21 14:43:40 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2017-06-21 15:33:34 +0400
commitc9c86b875735b7f21a90e73f16b58fa13c01b419 (patch)
treef3a0fd24c422aaa9485a7033e79dd698bb295511 /mcp/reclass/scripts/openstack.sh
parent8e0b5d2550241d44a9d91bbbb040e3446656a02f (diff)
Make virtual cluster as noha w/ one controller
* remove glusterfs from cluster * increase amount of ram on controller * bring in one more compute node Change-Id: I04ccd4cdaf65bb860d6d3b9c012e035f598e44d5 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/reclass/scripts/openstack.sh')
-rwxr-xr-xmcp/reclass/scripts/openstack.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/mcp/reclass/scripts/openstack.sh b/mcp/reclass/scripts/openstack.sh
index c3ffb0d7f..9dd4bd614 100755
--- a/mcp/reclass/scripts/openstack.sh
+++ b/mcp/reclass/scripts/openstack.sh
@@ -7,7 +7,7 @@ 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 '*' state.apply salt
salt -C 'I@salt:master' state.sls linux
salt -C '* and not cfg01*' state.sls linux
@@ -19,12 +19,7 @@ ssh $SSH_OPTS ubuntu@$SALT_MASTER bash -s << OPENSTACK_INSTALL_END
salt -C 'I@rabbitmq:server' state.sls rabbitmq
salt -C 'I@rabbitmq:server' cmd.run "rabbitmqctl cluster_status"
- salt -C 'I@glusterfs:server' state.sls glusterfs.server.service
- salt -C 'I@glusterfs:server' state.sls glusterfs.server.setup -b 1
- salt -C 'I@glusterfs:server' cmd.run "gluster peer status; gluster volume status" -b 1
-
salt -C 'I@galera:master' state.sls galera
- salt -C 'I@galera:slave' state.sls galera
salt -C 'I@galera:master' mysql.status | grep -A1 wsrep_cluster_size
salt -C 'I@haproxy:proxy' state.sls haproxy
@@ -32,7 +27,7 @@ ssh $SSH_OPTS ubuntu@$SALT_MASTER bash -s << OPENSTACK_INSTALL_END
salt -C 'I@keystone:server' state.sls keystone.server -b 1
salt -C 'I@keystone:server' cmd.run "service apache2 restart"
- salt -C 'I@keystone:client' state.sls keystone.client
+ while true; do salt -C 'I@keystone:client' state.sls keystone.client && break; done
salt -C 'I@keystone:server' cmd.run ". /root/keystonercv3; openstack user list"
salt -C 'I@glance:server' state.sls glance -b 1