Added selinux::restorecond for managing restorecond service
This commit is contained in:
parent
d1bfd32123
commit
2e6f13d0d6
2 changed files with 36 additions and 0 deletions
|
@ -92,6 +92,34 @@ class selinux::tools {
|
|||
}
|
||||
|
||||
|
||||
# Enable restorecond service.
|
||||
#
|
||||
class selinux::restorecond {
|
||||
|
||||
if $::selinux == "true" {
|
||||
file { "/etc/selinux/restorecond.conf":
|
||||
ensure => present,
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
seltype => "selinux_config_t",
|
||||
source => [
|
||||
"puppet:///files/selinux/restorecond.conf.${homename}",
|
||||
"puppet:///files/selinux/restorecond.conf",
|
||||
"puppet:///modules/selinux/restorecond.conf",
|
||||
],
|
||||
notify => Service["restorecond"],
|
||||
}
|
||||
|
||||
service { "restorecond":
|
||||
ensure => running,
|
||||
enable => true,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Set SELinux boolean value
|
||||
#
|
||||
# === Parameters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue