Merge "Install and configure iptables if enabled"
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index a0eac4e..a6630d3 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -47,6 +47,11 @@
sleep(5)
salt.runSaltProcessStep(master, '*', 'mine.update', [], null, true)
salt.enforceState(master, '*', ['linux.network.host'])
+
+ // Install and configure iptables
+ if (salt.testTarget(master, 'I@iptables:service')) {
+ salt.enforceState(master, 'I@iptables:service', 'iptables')
+ }
}
def installFoundationInfraOnTarget(master, target, staticMgmtNet=false) {