Enforce logrotate state
Change-Id: Id448a4a6c52ea290d820963cd1714e560a4e5e62
Related-Prod: PROD-19346
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index 0d9cb5c..a5beb4d 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -52,6 +52,11 @@
if (salt.testTarget(master, 'I@iptables:service')) {
salt.enforceState(master, 'I@iptables:service', 'iptables')
}
+
+ // Install and configure logrotate
+ if (salt.testTarget(master, 'I@logrotate:server')) {
+ salt.enforceState(master, 'I@logrotate:server', 'logrotate')
+ }
}
def installFoundationInfraOnTarget(master, target, staticMgmtNet=false) {