added selinux status configuration

This commit is contained in:
Arne Teuke
2017-08-03 12:19:53 +01:00
parent 8b184516c4
commit 914509740f
2 changed files with 14 additions and 1 deletions

View File

@@ -27,4 +27,12 @@ class cd_selinux::main::config (
include cd_selinux::main::files
if $sx_selinux_status == 'enforcing' {
exec { 'set_selinux_status':
command => 'setenforce 1',
path => '/usr/sbin',
provider => shell,
unless => 'getenforce | grep -i "enforcing"'
}
}
}