From c7b4ebbf3e00a20b3b51b4f1e9b4d9c539f78c61 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Fri, 26 Jun 2015 14:13:48 +0100 Subject: [PATCH] (FM-2923) install net-tools for tests serverspec's be_listening uses net-tools' netstat utility to check for open ports. This was puleld in until recently by puppet-agent packages. Now this has changed and we need to install this manually. --- spec/spec_helper_acceptance.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index fc367a8..2525ec3 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -73,6 +73,15 @@ RSpec.configure do |c| 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'