@@ -172,7 +172,7 @@ def persist_iptables(proto)
172172 # Basic normalisation for older Facter
173173 os_key = Facter . value ( :osfamily )
174174 os_key ||= case Facter . value ( :operatingsystem )
175- when 'RedHat' , 'CentOS' , 'Fedora' , 'Scientific' , 'SL' , 'SLC' , 'Ascendos' , 'CloudLinux' , 'PSBM' , 'OracleLinux' , 'OVS' , 'OEL' , 'Amazon' , 'XenServer' , 'VirtuozzoLinux'
175+ when 'RedHat' , 'CentOS' , 'Fedora' , 'Scientific' , 'SL' , 'SLC' , 'Ascendos' , 'CloudLinux' , 'PSBM' , 'OracleLinux' , 'OVS' , 'OEL' , 'Amazon' , 'XenServer' , 'VirtuozzoLinux' , 'Rocky'
176176 'RedHat'
177177 when 'Debian' , 'Ubuntu'
178178 'Debian'
@@ -198,7 +198,7 @@ def persist_iptables(proto)
198198 end
199199
200200 # RHEL 7 and newer also use systemd to persist iptable rules
201- if os_key == 'RedHat' && [ 'RedHat' , 'CentOS' , 'Scientific' , 'SL' , 'SLC' , 'Ascendos' , 'CloudLinux' , 'PSBM' , 'OracleLinux' , 'OVS' , 'OEL' , 'XenServer' , 'VirtuozzoLinux' ]
201+ if os_key == 'RedHat' && [ 'RedHat' , 'CentOS' , 'Scientific' , 'SL' , 'SLC' , 'Ascendos' , 'CloudLinux' , 'PSBM' , 'OracleLinux' , 'OVS' , 'OEL' , 'XenServer' , 'VirtuozzoLinux' , 'Rocky' ]
202202 . include? ( Facter . value ( :operatingsystem ) ) && Facter . value ( :operatingsystemrelease ) . to_i >= 7
203203 os_key = 'Fedora'
204204 end
0 commit comments