Skip to content
Browse files

This should help tests on Oracle 6, the lack of epel was breaking the…

… binding

tests.
  • Loading branch information...
1 parent 1454a5b commit 820344f13acd412665fd4dbfdd3fb58c6a3e36ab Ashley Penney committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/spec_helper_acceptance.rb
View
8 spec/spec_helper_acceptance.rb
@@ -29,6 +29,14 @@
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')

0 comments on commit 820344f

Please sign in to comment.
Something went wrong with that request. Please try again.