]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
(maint) - Use yum install on redhat pdksync_IAC-890
authorDavid Swan <david.swan@puppet.co.uk>
Thu, 18 Jun 2020 09:32:21 +0000 (10:32 +0100)
committerDavid Swan <david.swan@puppet.co.uk>
Thu, 25 Jun 2020 12:49:53 +0000 (13:49 +0100)
spec/spec_helper_acceptance_local.rb

index 1958e106e47e6c390837d2c6167472dad2529727..fe032fe7911a17b9918aafc4194d33336ee1f1ba 100644 (file)
@@ -13,7 +13,11 @@ end
 def install_iptables
   run_shell('iptables -V')
 rescue
-  run_shell('apt-get install iptables -y')
+  if os[:family] == 'redhat'
+    run_shell('yum install iptables -y')
+  else
+    run_shell('apt-get install iptables -y')
+  end
 end
 
 def iptables_version