Fixed puppetmaster SELinux errors when using MySQL database.

This commit is contained in:
Timo Mkinen 2012-07-02 09:40:54 +03:00
parent 3279af1208
commit 0caea7286f

View file

@ -271,6 +271,11 @@ class puppet::server::common inherits puppet::client {
}
"mysql": {
require ruby::mysql
if $::operatingsystem == "CentOS" and $::operatingsystemrelease !~ /^[1-5]\..*/ {
selinux::boolean { "puppetmaster_use_db":
value => "on",
}
}
}
default: {
fail("Invalid value ${puppet_dbadapter} for variable \$puppet_dbadapter.")