Skip to content

Commit 855718e

Browse files
committed
Merge pull request puppetlabs#651 from DavidS/install-missing-netstat
(FM-2923) install net-tools for tests
2 parents b87da29 + e963cd1 commit 855718e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/spec_helper_acceptance.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ def psql(psql_cmd, user = 'postgres', exit_codes = [0,1], &block)
7373
apply_manifest_on(agents, pp, :catch_failures => false)
7474
end
7575

76+
# net-tools required for netstat utility being used by be_listening
77+
if fact('osfamily') == 'RedHat' && fact('operatingsystemmajrelease') == '7'
78+
pp = <<-EOS
79+
package { 'net-tools': ensure => installed }
80+
EOS
81+
82+
apply_manifest_on(agents, pp, :catch_failures => false)
83+
end
84+
7685
hosts.each do |host|
7786
on host, "/bin/touch #{default['puppetpath']}/hiera.yaml"
7887
on host, 'chmod 755 /root'

0 commit comments

Comments
 (0)