From: Haroon Rafique Date: Tue, 26 Jul 2022 17:27:31 +0000 (-0400) Subject: allow persistence of firewall rules for Suse X-Git-Tag: v3.6.0~5^2~1 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=0bbf95c137e2fc7e7f909bb8f07fc97d50ba3c09;p=puppet-modules%2Fpuppetlabs-firewall.git allow persistence of firewall rules for Suse --- diff --git a/lib/puppet/util/firewall.rb b/lib/puppet/util/firewall.rb index 666347e..8761d18 100644 --- a/lib/puppet/util/firewall.rb +++ b/lib/puppet/util/firewall.rb @@ -241,6 +241,12 @@ module Puppet::Util::Firewall ['/bin/sh', '-c', '/usr/sbin/ip6tables-save > /etc/iptables/ip6tables.rules'] end end + when :Suse + case proto.to_sym + when :IPv4 + ['/bin/sh', '-c', '/usr/sbin/iptables-save > /etc/sysconfig/iptables'] + end + end # Catch unsupported OSs from the case statement above. if cmd.nil?