Merge "Add Alerta configuration before containers launching"
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index f0e41a4..b0ecd96 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -793,6 +793,11 @@
salt.enforceState(master, 'I@mongodb:server', 'mongodb')
}
+ // Configure Alerta
+ if (salt.testTarget(master, 'I@prometheus:alerta')) {
+ salt.enforceState(master, 'I@docker:swarm and I@prometheus:alerta', 'prometheus.alerta')
+ }
+
// Launch containers
salt.enforceState(master, 'I@docker:swarm:role:master and I@prometheus:server', 'docker.client')
salt.runSaltProcessStep(master, 'I@docker:swarm and I@prometheus:server', 'dockerng.ps')