From 9c39707a8257f977985fcb96fa32f17fcc4b90b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Thu, 9 Feb 2012 08:51:32 +0200 Subject: [PATCH] Fixed SELinux contexts from munin html directory. --- munin/manifests/init.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/munin/manifests/init.pp b/munin/manifests/init.pp index d7b51b7..f1fa681 100644 --- a/munin/manifests/init.pp +++ b/munin/manifests/init.pp @@ -228,8 +228,15 @@ class munin::server { mode => 0755, owner => munin, group => munin, + seltype => "httpd_munin_content_t", require => Package["munin"], } + if "${selinux}" == "true" { + selinux::manage_fcontext { "${munin_htmldir}(/.*)?": + type => "httpd_munin_content_t", + before => File[$munin_htmldir], + } + } file { "/var/www/html/munin": ensure => "${munin_htmldir}",