Add installation of long term storage prometheus
Change-Id: Ibae0675452332d1024c86d190cb3f71d9fdd7509
PROD-related: PROD-17211
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index 4fc8854..61e81d3 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -634,8 +634,17 @@
salt.enforceState(master, 'I@kibana:server', 'kibana.server')
salt.enforceState(master, 'I@elasticsearch:client', 'elasticsearch.client')
salt.enforceState(master, 'I@kibana:client', 'kibana.client')
- salt.enforceState(master, '*01* and I@influxdb:server', 'influxdb')
- salt.enforceState(master, 'I@influxdb:server', 'influxdb')
+
+ //Install InfluxDB
+ if (salt.testTarget(master, 'I@influxdb:server')) {
+ salt.enforceState(master, '*01* and I@influxdb:server', 'influxdb')
+ salt.enforceState(master, 'I@influxdb:server', 'influxdb')
+ }
+
+ //Install Prometheus LTS
+ if (salt.testTarget(master, 'I@prometheus:relay')) {
+ salt.enforceState(master, 'I@prometheus:relay', 'prometheus')
+ }
// Install service for the log collection
if (salt.testTarget(master, 'I@fluentd:agent')) {