Fixed setroubleshoot on Fedora hosts.
This commit is contained in:
parent
e76a2259e0
commit
9843464f8c
1 changed files with 14 additions and 12 deletions
|
@ -36,18 +36,20 @@ class selinux {
|
|||
require => Package["selinux-policy-targeted"],
|
||||
notify => Exec["set-selinux-mode"],
|
||||
}
|
||||
|
||||
service { "setroubleshoot":
|
||||
ensure => $selinux_type ? {
|
||||
disabled => stopped,
|
||||
default => running,
|
||||
},
|
||||
enable => $selinux_type ? {
|
||||
disabled => false,
|
||||
default => true,
|
||||
},
|
||||
hasstatus => true,
|
||||
require => Package["setroubleshoot"],
|
||||
|
||||
if $operatingsystem != "Fedora" {
|
||||
service { "setroubleshoot":
|
||||
ensure => $selinux_type ? {
|
||||
disabled => stopped,
|
||||
default => running,
|
||||
},
|
||||
enable => $selinux_type ? {
|
||||
disabled => false,
|
||||
default => true,
|
||||
},
|
||||
hasstatus => true,
|
||||
require => Package["setroubleshoot"],
|
||||
}
|
||||
}
|
||||
|
||||
exec { "set-selinux-mode":
|
||||
|
|
Loading…
Add table
Reference in a new issue