Merge "Fix Stacklight installation stage in the pipelines"
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index aeb74ca..0a223ce 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -790,7 +790,12 @@
// Install MongoDB for Alerta
if (salt.testTarget(master, 'I@mongodb:server')) {
- salt.enforceState(master, 'I@mongodb:server', 'mongodb')
+ salt.enforceState(master, 'I@mongodb:server', 'mongodb.server')
+
+ // Initialize mongodb replica set
+ common.retry(5,20){
+ salt.enforceState(master, 'I@mongodb:server', 'mongodb.cluster')
+ }
}
//Install Telegraf