Puppet Class: r_profile::linux::selinux
- Defined in:
- manifests/linux/selinux.pp
Overview
R_profile::Linux::Selinux
Managment of SELinux and optional removal of the setroubleshoot debug package
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'manifests/linux/selinux.pp', line 12
class r_profile::linux::selinux(
Enum['noop', 'enforcing', 'permissive', 'disabled'] $sel_mode =
hiera("r_profile::linux::selinux::mode", 'noop'),
Boolean $remove_troubleshoot =
hiera("r_profile::linux::selinux::remove_troubleshoot", false),
) {
if $sel_mode != "noop" {
# if we have been requested to reconfigure SELinux, do so...
class { "selinux":
mode => $sel_mode,
}
}
if $remove_troubleshoot {
# Remove setroubleshoot if we have been requested to
package { "setroubleshoot":
ensure => absent,
}
}
}
|