Commit fb4acdff authored by Fabien Combernous's avatar Fabien Combernous

remove selinux management from module, disable it during acceptance

parent 26e7cd1e
......@@ -81,12 +81,6 @@ class freeipa::install::server {
contain 'freeipa::install::server::replica'
}
exec { 'semanage':
command => 'semanage port -a -t http_port_t -p tcp 8440',
unless => 'semanage port --list |grep 8440',
user => root,
}
ensure_resource (
'service',
'httpd',
......
......@@ -31,6 +31,10 @@ RSpec.configure do |c|
onlyif => 'systemctl status NetworkManager',
path => '/usr/bin:/sbin:/bin',
}
exec { 'disable selinux':
command => 'setenforce 0',
path => '/usr/bin:/sbin:/bin',
}
EOS
apply_manifest_on(host, pp, catch_failures: true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment