Added check for selinux state in selinux::boolean
This commit is contained in:
parent
f6b182fa92
commit
85c3fba953
2 changed files with 6 additions and 4 deletions
|
@ -271,7 +271,7 @@ class puppet::server::common inherits puppet::client {
|
|||
}
|
||||
"mysql": {
|
||||
require ruby::mysql
|
||||
if $::selinux == "true" and $::operatingsystem == "CentOS" and $::operatingsystemrelease !~ /^[1-5]\..*/ {
|
||||
if $::operatingsystem == "CentOS" and $::operatingsystemrelease !~ /^[1-5]\..*/ {
|
||||
selinux::boolean { "puppetmaster_use_db":
|
||||
value => "on",
|
||||
}
|
||||
|
|
|
@ -109,10 +109,12 @@ class selinux::tools {
|
|||
#
|
||||
define selinux::boolean($value) {
|
||||
|
||||
if $::selinux == "true" {
|
||||
selboolean { $name:
|
||||
value => $value,
|
||||
persistent => true,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue