diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 30b205833c..d436ac4a1f 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -73,6 +73,15 @@ def psql(psql_cmd, user = 'postgres', exit_codes = [0,1], &block) apply_manifest_on(agents, pp, :catch_failures => false) end + # net-tools required for netstat utility being used by be_listening + if fact('osfamily') == 'RedHat' && fact('operatingsystemmajrelease') == '7' + pp = <<-EOS + package { 'net-tools': ensure => installed } + EOS + + apply_manifest_on(agents, pp, :catch_failures => false) + end + hosts.each do |host| on host, "/bin/touch #{default['puppetpath']}/hiera.yaml" on host, 'chmod 755 /root'