From db62e25849ef0fb5226a9b301c205197f36adafe Mon Sep 17 00:00:00 2001 From: "Benjamin M. Hughes" Date: Thu, 6 May 2021 11:26:02 +0100 Subject: [PATCH] Correct default packages for Fedora >= 34 --- libraries/helpers.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/helpers.rb b/libraries/helpers.rb index c4d4260..a077426 100644 --- a/libraries/helpers.rb +++ b/libraries/helpers.rb @@ -83,7 +83,13 @@ def package_names else %w(iptables iptables-services iptables-utils) end - when 'fedora', 'amazon' + when 'fedora' + if node['platform_version'].to_i >= 34 + %w(iptables-compat iptables-nft iptables-services iptables-utils) + else + %w(iptables iptables-services iptables-utils) + end + when 'amazon' %w(iptables iptables-services iptables-utils) when 'debian' %w(iptables iptables-persistent)