Retry mongodb replica set initialization

Mongodb instances may not be ready to be a part of RS, we have to
wait for them sometime.

Change-Id: Ifd41883173814654eeb7ad51fd47a157a74704e9
Related-PROD: PROD-20452
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index b0ecd96..77aaa05 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')
+        }
     }
 
     // Configure Alerta