Skip to content

Commit

Permalink
Set obsoletes=0 on el7 to work around PUP-4497
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Haskel committed Jun 19, 2015
1 parent 3d23958 commit 3aff134
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 3aff134

Please sign in to comment.