Merge pull request #463 from apenney/fix-oracle
This should help tests on Oracle 6, the lack of epel was breaking the bi...
This commit is contained in:
commit
ac991e8e41
1 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,14 @@ 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 version == '6'
|
||||
shell("yum localinstall -y http://mirror.pnl.gov/epel/6/i386/epel-release-6-8.noarch.rpm")
|
||||
elsif version == '5'
|
||||
shell("yum localinstall -y http://mirrors.servercentral.net/fedora/epel/5/i386/epel-release-5-4.noarch.rpm")
|
||||
else
|
||||
puts "Sorry, this version is not supported."
|
||||
exit
|
||||
end
|
||||
end
|
||||
|
||||
shell('/bin/touch /etc/puppet/hiera.yaml')
|
||||
|
|
Loading…
Reference in a new issue