Skip to content

Commit 3392bad

Browse files
authored
Merge pull request #998 from vchepkov/rocky
add compatibility with Rocky Linux
2 parents b234e1b + 91da0c9 commit 3392bad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/puppet/util/firewall.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

manifests/linux.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
case $::operatingsystem {
5858
'RedHat', 'CentOS', 'Fedora', 'Scientific', 'SL', 'SLC', 'Ascendos',
5959
'CloudLinux', 'PSBM', 'OracleLinux', 'OVS', 'OEL', 'Amazon', 'XenServer',
60-
'VirtuozzoLinux': {
60+
'VirtuozzoLinux', 'Rocky': {
6161
class { "${title}::redhat":
6262
ensure => $ensure,
6363
ensure_v6 => $_ensure_v6,

0 commit comments

Comments
 (0)