Fixed SELinux contexts from munin datadir.
This commit is contained in:
parent
7cb3953a96
commit
18ccc171c2
1 changed files with 7 additions and 0 deletions
|
@ -204,8 +204,15 @@ class munin::server {
|
|||
mode => 0755,
|
||||
owner => munin,
|
||||
group => munin,
|
||||
seltype => "munin_var_lib_t",
|
||||
require => Package["munin"],
|
||||
}
|
||||
if "${selinux}" == "true" {
|
||||
selinux::manage_fcontext { "${munin_datadir}(/.*)?":
|
||||
type => "munin_var_lib_t",
|
||||
before => File[$munin_datadir],
|
||||
}
|
||||
}
|
||||
|
||||
file { "/var/lib/munin":
|
||||
ensure => "${munin_datadir}",
|
||||
|
|
Loading…
Add table
Reference in a new issue