Defined Type: selinux::permissive
- Defined in:
- manifests/permissive.pp
Overview
Set SELinux type to permissive
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/permissive.pp', line 11
define selinux::permissive (
String $seltype = $title,
Enum['present', 'absent'] $ensure = 'present',
) {
include selinux
if $ensure == 'present' {
Anchor['selinux::module post']
-> Selinux::Permissive[$title]
-> Anchor['selinux::end']
} else {
Anchor['selinux::start']
-> Selinux::Permissive[$title]
-> Anchor['selinux::module pre']
}
if $facts['os']['selinux']['enabled'] {
selinux_permissive { $seltype:
ensure => $ensure,
}
}
}
|