diff options
author | 2017-05-24 13:52:02 +0400 | |
---|---|---|
committer | 2017-05-25 14:38:56 +0400 | |
commit | 27d968bc35ef4f622acd171ada778a4e0f4c76fb (patch) | |
tree | 5f780e69aa1969ac499e5442162629984521ca1d /mcp/reclass/scripts/openstack.sh | |
parent | a6daf4ece3f05600ad66fea55c5220d07a71cef1 (diff) |
[mcp] Bring in deployment scripts
Change-Id: I7d2af958e447a5892f7cd1f6c6fb8616951e2ff3
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/reclass/scripts/openstack.sh')
-rwxr-xr-x | mcp/reclass/scripts/openstack.sh | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/mcp/reclass/scripts/openstack.sh b/mcp/reclass/scripts/openstack.sh new file mode 100755 index 000000000..b757e8ecf --- /dev/null +++ b/mcp/reclass/scripts/openstack.sh @@ -0,0 +1,53 @@ +#!/bin/bash +# +# Deploy Openstack +# + +ssh -i mcp.rsa ubuntu@192.168.10.100 bash -s << OPENSTACK_INSTALL_END + sudo -i + + salt-call 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@keepalived:cluster' state.sls keepalived -b 1 + + 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 + salt -C 'I@memcached:server' state.sls memcached + + 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 + salt -C 'I@keystone:server' cmd.run ". /root/keystonercv3; openstack user list" + + salt -C 'I@glance:server' state.sls glance -b 1 + salt -C 'I@nova:controller' state.sls nova -b 1 + salt -C 'I@heat:server' state.sls heat -b 1 + salt -C 'I@cinder:controller' state.sls cinder -b 1 + + salt -C 'I@neutron:server' state.sls neutron -b 1 + 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 -C 'I@keystone:server' cmd.run ". /root/keystonercv3; nova service-list" + salt -C 'I@keystone:server' cmd.run ". /root/keystonercv3; neutron agent-list" + salt -C 'I@keystone:server' cmd.run ". /root/keystonercv3; heat stack-list" + salt -C 'I@keystone:server' cmd.run ". /root/keystonercv3; cinder list" +OPENSTACK_INSTALL_END |