Fixed SELinux warnings from munin-graph.

This commit is contained in:
Timo Mkinen 2012-03-07 11:53:48 +02:00
parent b470ceb9b6
commit a0e6c79fab

View file

@ -241,12 +241,17 @@ class munin::server {
type => "httpd_munin_content_t",
before => File[$munin_htmldir],
}
selinux::manage_fcontext { "/var/www/html/munin":
type => "munin_var_lib_t",
before => File["/var/www/html/munin"],
}
}
file { "/var/www/html/munin":
ensure => "${munin_htmldir}",
force => true,
backup => ".orig",
seltype => "munin_var_lib_t",
require => File["${munin_htmldir}"],
}
}