Files
confdroid_selinux/manifests/main/config.pp

20 lines
587 B
ObjectPascal
Raw Normal View History

2017-07-20 12:38:15 +01:00
## cd_selinux::main::config.pp
# Module name: cd_selinux
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
# @summary Class manages the module logic for cd_selinux.
2017-07-20 12:38:15 +01:00
##############################################################################
class cd_selinux::main::config (
) inherits cd_selinux::params {
2017-07-20 13:07:11 +01:00
include cd_selinux::main::files
2017-07-20 12:38:15 +01:00
2017-08-03 12:19:53 +01:00
if $sx_selinux_status == 'enforcing' {
exec { 'set_selinux_status':
command => 'setenforce 1',
path => ['/usr/sbin','/usr/bin'],
provider => shell,
unless => 'getenforce | grep -i "enforcing"'
2017-08-03 12:19:53 +01:00
}
}
2017-07-20 12:38:15 +01:00
}