Skip to content

Commit

Permalink
(MODULES-8930) Fix stahnma/epel dependency failures (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
eimlav authored and sheenaajay committed Apr 17, 2019
1 parent b75d5b6 commit aac359a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,17 @@ def retry_on_error_matching(max_retry_count = MAX_RETRY_COUNT, retry_wait_interv
package { 'socat': ensure => present, }
package { 'screen': ensure => present, }
if $::osfamily == 'RedHat' {
class { 'epel': before => Package['socat'], }
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",
before => Package['socat'],
}
} else {
class { 'epel':
before => Package['socat'],
}
}
service { 'iptables': ensure => stopped, }
exec { 'setenforce 0':
path => ['/bin','/usr/bin','/sbin','/usr/sbin'],
Expand Down

0 comments on commit aac359a

Please sign in to comment.