Skip to content

Commit

Permalink
Install bzip2 on RHEL 7 and Fedora hosts
Browse files Browse the repository at this point in the history
The backup script needs the bzcat command, which does not come
installed on RHEL 7 and Fedora hosts by default. This patch installs
the bzip2 package before attempting to run tests that use bzcat.
  • Loading branch information
Colleen Murphy committed Oct 7, 2014
1 parent e6dceb1 commit c291be4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
if fact('osfamily') == 'RedHat'
version = fact("operatingsystemmajrelease")
shell("yum localinstall -y http://yum.puppetlabs.com/puppetlabs-release-el-#{version}.noarch.rpm")
if fact('operatingsystemmajrelease') =~ /7/ || fact('operatingsystem') =~ /Fedora/
shell("yum install -y bzip2")
end
end

shell("/bin/touch #{default['puppetpath']}/hiera.yaml")
Expand Down

0 comments on commit c291be4

Please sign in to comment.