From 19ab77fed63692a14528648e396bc593983946e1 Mon Sep 17 00:00:00 2001 From: Raymond Colebaugh Date: Fri, 12 Apr 2024 14:11:58 -0700 Subject: [PATCH] Exclude fedora from slowroll Differential Revision: D56079700 fbshipit-source-id: 78c2449a4e70f0bbaeb5ea3bc6464b4c136181b1 --- cookbooks/fb_iptables/recipes/packages.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cookbooks/fb_iptables/recipes/packages.rb b/cookbooks/fb_iptables/recipes/packages.rb index a1793553..49a43ddf 100644 --- a/cookbooks/fb_iptables/recipes/packages.rb +++ b/cookbooks/fb_iptables/recipes/packages.rb @@ -19,7 +19,7 @@ # limitations under the License. # -if (node.centos? && !(node.centos7? || node.centos8?)) || node.fedora? +if node.centos? && !(node.centos7? || node.centos8?) slowroll_name = 'iptables-legacy' node.default['fb_slowroll'][slowroll_name]['phases'] = FB::Slowroll::PhaseTemplates.slow_start(node) @@ -30,7 +30,12 @@ notifies :run, 'execute[reload ip6tables]' end else - packages = ['iptables'] + if node.fedora? + packages = ['iptables-legacy'] + else + packages = ['iptables'] + end + if node.ubuntu? packages << 'iptables-persistent' else