Skip to content

Commit 5a43ad0

Browse files
committed
Merge pull request #548 from hunner/disable_selinux
Don't enable selinux on redhat systems
2 parents d12adc4 + 1660435 commit 5a43ad0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

spec/spec_helper_acceptance.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ def ip6tables_flush_all_tables
3030
hosts.each do |host|
3131
copy_module_to(host, :source => proj_root, :module_name => 'firewall')
3232
on host, puppet('module install puppetlabs-stdlib --version 3.2.0'), { :acceptable_exit_codes => [0,1] }
33+
if ! UNSUPPORTED_PLATFORMS.include?(fact('osfamily'))
34+
pp = <<-EOS
35+
if $::osfamily == 'RedHat' {
36+
exec { 'setenforce Permissive':
37+
path => ['/bin','/usr/bin','/sbin','/usr/sbin'],
38+
onlyif => 'getenforce | grep Enforcing',
39+
}
40+
}
41+
EOS
42+
apply_manifest(pp, :catch_failures => true)
43+
end
3344
end
3445
end
3546
end

0 commit comments

Comments
 (0)