Skip to content

Commit

Permalink
Merge pull request #1914 from eimlav/modules-8931
Browse files Browse the repository at this point in the history
(MODULES-8931) Fix stahnma/epel failures
  • Loading branch information
sheenaajay authored Apr 18, 2019
2 parents 1a9bb92 + 675f648 commit 403cdc1
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,20 @@
if host_inventory['facter']['os']['family'] == 'RedHat'
on host, puppet('module', 'install', 'stahnma/epel')
on host, puppet('module', 'install', 'puppetlabs/inifile')
# we need epel installed, so we can get plugins, wsgi, mime ...
pp = <<-EOS
class { 'epel': }
EOS
# We need epel installed, so we can get plugins, wsgi, mime ...
# The osmirror is required as epel no longer supports el5
pp = <<-PUPPETCODE
if $::osfamily == 'RedHat' {
if $::operatingsystemmajrelease == '5' or ($::operatingsystem == 'OracleLinux' and $::operatingsystemmajrelease == '6'){
class { 'epel':
epel_baseurl => "http://osmirror.delivery.puppetlabs.net/epel${::operatingsystemmajrelease}-\\$basearch/RPMS.all",
epel_mirrorlist => "http://osmirror.delivery.puppetlabs.net/epel${::operatingsystemmajrelease}-\\$basearch/RPMS.all",
}
} else {
class { 'epel': }
}
}
PUPPETCODE

apply_manifest_on(host, pp, catch_failures: true)
end
Expand Down

0 comments on commit 403cdc1

Please sign in to comment.