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:
Ashley Penney 2014-02-24 15:16:08 -05:00
commit ac991e8e41

View file

@ -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')