added selinux status configuration

This commit is contained in:
Arne Teuke
2017-08-03 12:24:18 +01:00
parent 914509740f
commit a1177ccacf

View File

@@ -30,7 +30,7 @@ class cd_selinux::main::config (
if $sx_selinux_status == 'enforcing' {
exec { 'set_selinux_status':
command => 'setenforce 1',
path => '/usr/sbin',
path => ['/usr/sbin','/usr/bin'],
provider => shell,
unless => 'getenforce | grep -i "enforcing"'
}