summaryrefslogtreecommitdiffstats
path: root/mcp/config/states
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-09-07 01:06:55 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-07 01:06:55 +0000
commitcde147cf3aec7f79b0a4d2bd60d01c355e5861ec (patch)
tree1d5249074540de3e9bd9bdbb2779654a58ef2862 /mcp/config/states
parenta0f04d89d4114d11e62801190ddace50e2344ca5 (diff)
parentc9d474cd794044bffeaa091e4bcf33bec4509bc4 (diff)
Merge "Initialize mongodb cluster"
Diffstat (limited to 'mcp/config/states')
-rwxr-xr-xmcp/config/states/openstack_ha6
1 files changed, 5 insertions, 1 deletions
diff --git a/mcp/config/states/openstack_ha b/mcp/config/states/openstack_ha
index e507ec990..b9db81729 100755
--- a/mcp/config/states/openstack_ha
+++ b/mcp/config/states/openstack_ha
@@ -42,7 +42,11 @@ salt -I 'neutron:gateway' state.sls neutron.gateway
salt -I 'nova:compute' state.sls nova
-salt -I 'mongodb:server' state.sls mongodb -b 1
+salt -I 'mongodb:server' state.sls mongodb
+while true; do sleep 5; salt -C 'I@mongodb:server and *01*' cmd.run 'mongo localhost:27017/admin' && break; done
+salt -C 'I@mongodb:server and *01*' cmd.run 'mongo localhost:27017/admin --eval "rs.initiate()"'
+salt -C 'I@mongodb:server and *01*' state.sls mongodb
+
salt -I 'aodh:server' state.sls aodh
salt -I 'ceilometer:server' state.sls ceilometer
salt -I 'ceilometer:agent' state.sls ceilometer