Install bzip2 on RHEL 7 and Fedora hosts
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.
This commit is contained in:
parent
e6dceb13da
commit
c291be44eb
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,9 @@ RSpec.configure do |c|
|
|||
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")
|
||||
|
|
Loading…
Reference in a new issue