puppet 3.0 fixes

This commit is contained in:
Paavo Pokkinen 2012-10-10 15:13:50 +03:00
parent 26ebca9a5f
commit eebd1512cf
5 changed files with 25 additions and 9 deletions

View file

@ -8,7 +8,7 @@
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp --icmp-type any -j ACCEPT
<%
firewall_rules.each do |rule|
@firewall_rules.each do |rule|
rule = /(tcp|udp)\/([\d:]+)( .+)?/.match(rule)
if not rule[3] or IPAddr.new(rule[3].strip()).ipv4?
-%>
@ -16,7 +16,7 @@
<%
end
end
firewall_custom.each do |rule|
@firewall_custom.each do |rule|
-%>
<%= rule %>
<% end -%>