From 0caea7286f84e8f69f3e54b96735f242a4c77821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Mon, 2 Jul 2012 09:40:54 +0300 Subject: [PATCH] Fixed puppetmaster SELinux errors when using MySQL database. --- puppet/manifests/init.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/puppet/manifests/init.pp b/puppet/manifests/init.pp index 8839e58..4437b82 100644 --- a/puppet/manifests/init.pp +++ b/puppet/manifests/init.pp @@ -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.")