Skip to content

Commit 0bbf95c

Browse files
allow persistence of firewall rules for Suse
1 parent bf43e29 commit 0bbf95c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/puppet/util/firewall.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@ def persist_iptables(proto)
241241
['/bin/sh', '-c', '/usr/sbin/ip6tables-save > /etc/iptables/ip6tables.rules']
242242
end
243243
end
244+
when :Suse
245+
case proto.to_sym
246+
when :IPv4
247+
['/bin/sh', '-c', '/usr/sbin/iptables-save > /etc/sysconfig/iptables']
248+
end
249+
end
244250

245251
# Catch unsupported OSs from the case statement above.
246252
if cmd.nil?

0 commit comments

Comments
 (0)