From d677c5a32a1bfe80847e7897f758e9729565da41 Mon Sep 17 00:00:00 2001 From: Adam Boutcher Date: Tue, 28 Sep 2021 16:27:44 +0100 Subject: [PATCH] Fedora 34 and iptables-compat fix, along with properly utilising iptables variable --- manifests/linux.pp | 1 + manifests/params.pp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/linux.pp b/manifests/linux.pp index 1ceadbe..d20430e 100644 --- a/manifests/linux.pp +++ b/manifests/linux.pp @@ -45,6 +45,7 @@ class firewall::linux ( } package { 'iptables': + name => $package_name, ensure => $pkg_ensure, } diff --git a/manifests/params.pp b/manifests/params.pp index a6d1907..ac5171b 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -16,7 +16,9 @@ class firewall::params { 'Fedora': { $service_name = 'iptables' $service_name_v6 = 'ip6tables' - if versioncmp($::operatingsystemrelease, '15') >= 0 { + if versioncmp($::operatingsystemrelease, '34') >= 0 { + $package_name = 'iptables-compat' + } elsif versioncmp($::operatingsystemrelease, '15') >= 0 { $package_name = 'iptables-services' } else { $package_name = undef -- 2.45.2