Skip to content

Commit d677c5a

Browse files
committed
Fedora 34 and iptables-compat fix, along with properly utilising iptables variable
1 parent 4699cd5 commit d677c5a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

manifests/linux.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
}
4646

4747
package { 'iptables':
48+
name => $package_name,
4849
ensure => $pkg_ensure,
4950
}
5051

manifests/params.pp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
'Fedora': {
1717
$service_name = 'iptables'
1818
$service_name_v6 = 'ip6tables'
19-
if versioncmp($::operatingsystemrelease, '15') >= 0 {
19+
if versioncmp($::operatingsystemrelease, '34') >= 0 {
20+
$package_name = 'iptables-compat'
21+
} elsif versioncmp($::operatingsystemrelease, '15') >= 0 {
2022
$package_name = 'iptables-services'
2123
} else {
2224
$package_name = undef

0 commit comments

Comments
 (0)