Skip to content

Commit

Permalink
Merge pull request #548 from hunner/disable_selinux
Browse files Browse the repository at this point in the history
Don't enable selinux on redhat systems
  • Loading branch information
bmjen committed Jun 19, 2015
2 parents d12adc4 + 1660435 commit 5a43ad0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ def ip6tables_flush_all_tables
hosts.each do |host|
copy_module_to(host, :source => proj_root, :module_name => 'firewall')
on host, puppet('module install puppetlabs-stdlib --version 3.2.0'), { :acceptable_exit_codes => [0,1] }
if ! UNSUPPORTED_PLATFORMS.include?(fact('osfamily'))
pp = <<-EOS
if $::osfamily == 'RedHat' {
exec { 'setenforce Permissive':
path => ['/bin','/usr/bin','/sbin','/usr/sbin'],
onlyif => 'getenforce | grep Enforcing',
}
}
EOS
apply_manifest(pp, :catch_failures => true)
end
end
end
end

0 comments on commit 5a43ad0

Please sign in to comment.