Skip to content

Commit 5b8625a

Browse files
author
Morgan Haskel
committed
Merge pull request puppetlabs#653 from bmjen/update-from-master
(FM-2923) install net-tools for tests
2 parents f6c1c85 + c7b4ebb commit 5b8625a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: spec/spec_helper_acceptance.rb

+9
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)