Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Put comments on iptables lines.

Alex Vandiver3bbe5c11100b
diff --git a/puppet/zulip_ops/manifests/firewall_allow.pp b/puppet/zulip_ops/manifests/firewall_allow.pp
index 7c283f333aa..b88584b6f9f 100644
--- a/puppet/zulip_ops/manifests/firewall_allow.pp
+++ b/puppet/zulip_ops/manifests/firewall_allow.pp
@@ -16,12 +16,12 @@ define zulip_ops::firewall_allow (
concat::fragment { "iptables_v4_${portname}":
target => '/etc/iptables/rules.v4',
order => $order,
- content => "-A INPUT -p ${proto} --dport ${portname} -j ACCEPT\n",
+ content => "-A INPUT -p ${proto} --dport ${portname} -j ACCEPT -m comment --comment \"${name}\"\n",
}
concat::fragment { "iptables_v6_${portname}":
target => '/etc/iptables/rules.v6',
order => $order,
- content => "-A INPUT -p ${proto} --dport ${portname} -j ACCEPT\n",
+ content => "-A INPUT -p ${proto} --dport ${portname} -j ACCEPT -m comment --comment \"${name}\"\n",
}
}