2017-07-20 12:38:15 +01:00
|
|
|
## cd_selinux::main::config.pp
|
|
|
|
|
# Module name: cd_selinux
|
|
|
|
|
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
2025-05-14 13:34:43 +02:00
|
|
|
# @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':
|
2025-05-14 13:34:43 +02:00
|
|
|
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
|
|
|
}
|