Skip to content

Commit

Permalink
Merge pull request #1144 from mhaskel/7b_testing
Browse files Browse the repository at this point in the history
Set obsoletes=0 on el7 to work around PUP-4497
  • Loading branch information
bmjen committed Jun 19, 2015
2 parents 3d23958 + 3aff134 commit e267668
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/acceptance/mod_security_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@
pp = "class { 'epel': }"
apply_manifest(pp, :catch_failures => true)
end
elsif fact('osfamily') == 'RedHat' and fact('operatingsystemmajrelease') == '7'
it 'changes obsoletes, per PUP-4497' do
pp = <<-EOS
ini_setting { 'obsoletes':
path => '/etc/yum.conf',
section => 'main',
setting => 'obsoletes',
value => '0',
}
EOS
apply_manifest(pp, :catch_failures => true)
end
end

it 'succeeds in puppeting mod_security' do
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# Required for mod_passenger tests.
if fact('osfamily') == 'RedHat'
on host, puppet('module','install','stahnma/epel'), { :acceptable_exit_codes => [0,1] }
on host, puppet('module','install','puppetlabs/inifile'), { :acceptable_exit_codes => [0,1] }
end
# Required for manifest to make mod_pagespeed repository available
if fact('osfamily') == 'Debian'
Expand Down

0 comments on commit e267668

Please sign in to comment.