Skip to content

Commit

Permalink
Exclude fedora from slowroll
Browse files Browse the repository at this point in the history
Differential Revision: D56079700

fbshipit-source-id: 78c2449a4e70f0bbaeb5ea3bc6464b4c136181b1
  • Loading branch information
Raymond Colebaugh authored and facebook-github-bot committed Apr 12, 2024
1 parent 072b1a8 commit 19ab77f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cookbooks/fb_iptables/recipes/packages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 19ab77f

Please sign in to comment.