Install openscap if enabled
Related-PROD: https://mirantis.jira.com/browse/PROD-19955
Change-Id: Ic23e4d90dc804fbe56fea0ef86faf4846db3a48f
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index 873e42a..1157083 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -74,6 +74,11 @@
if (salt.testTarget(master, "I@auditd:service ${extra_tgt}")) {
salt.enforceState(master, "I@auditd:service ${extra_tgt}", 'auditd')
}
+
+ // Install and configure openscap
+ if (salt.testTarget(master, "I@openscap:service ${extra_tgt}")) {
+ salt.enforceState(master, "I@openscap:service ${extra_tgt}", 'openscap')
+ }
}
def installFoundationInfraOnTarget(master, target, staticMgmtNet=false, extra_tgt = '') {