From: David Swan Date: Thu, 18 Jun 2020 09:32:21 +0000 (+0100) Subject: (maint) - Use yum install on redhat X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fpdksync_IAC-890;p=puppet-modules%2Fpuppetlabs-firewall.git (maint) - Use yum install on redhat --- diff --git a/spec/spec_helper_acceptance_local.rb b/spec/spec_helper_acceptance_local.rb index 1958e10..fe032fe 100644 --- a/spec/spec_helper_acceptance_local.rb +++ b/spec/spec_helper_acceptance_local.rb @@ -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