Fixed SELinux contexts from munin html directory.

This commit is contained in:
Timo Mkinen 2012-02-09 08:51:32 +02:00
parent 18ccc171c2
commit 9c39707a82

View file

@ -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}",