Fixed SELinux error in puppet module when SELinux is disabled

This commit is contained in:
Ossi Salmi 2012-07-17 16:33:09 +03:00
parent 487b593ef8
commit bdd90e8b9c

View file

@ -271,7 +271,7 @@ class puppet::server::common inherits puppet::client {
}
"mysql": {
require ruby::mysql
if $::operatingsystem == "CentOS" and $::operatingsystemrelease !~ /^[1-5]\..*/ {
if $::selinux == "true" and $::operatingsystem == "CentOS" and $::operatingsystemrelease !~ /^[1-5]\..*/ {
selinux::boolean { "puppetmaster_use_db":
value => "on",
}