@@ -172,7 +172,8 @@ 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' , 'Rocky'
175+ when 'RedHat' , 'CentOS' , 'Fedora' , 'Scientific' , 'SL' , 'SLC' , 'Ascendos' , 'CloudLinux' ,
176+ 'PSBM' , 'OracleLinux' , 'OVS' , 'OEL' , 'Amazon' , 'XenServer' , 'VirtuozzoLinux' , 'Rocky' , 'AlmaLinux'
176177 'RedHat'
177178 when 'Debian' , 'Ubuntu'
178179 'Debian'
@@ -198,7 +199,7 @@ def persist_iptables(proto)
198199 end
199200
200201 # 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' , 'Rocky' ]
202+ if os_key == 'RedHat' && [ 'RedHat' , 'CentOS' , 'Scientific' , 'SL' , 'SLC' , 'Ascendos' , 'CloudLinux' , 'PSBM' , 'OracleLinux' , 'OVS' , 'OEL' , 'XenServer' , 'VirtuozzoLinux' , 'Rocky' , 'AlmaLinux' ]
202203 . include? ( Facter . value ( :operatingsystem ) ) && Facter . value ( :operatingsystemrelease ) . to_i >= 7
203204 os_key = 'Fedora'
204205 end
0 commit comments