puppet: Fixes for puppetmaster SELinux contexts.

This commit is contained in:
Timo Mkinen 2013-09-28 12:30:10 +03:00
parent c106c54103
commit e56702c0d0

View file

@ -352,10 +352,14 @@ class puppet::server::common inherits puppet::client {
seltype => "usr_t", seltype => "usr_t",
require => File[$puppet_datadir], require => File[$puppet_datadir],
} }
selinux::manage_fcontext { "/srv/puppet(/.*)?": selinux::manage_fcontext { "/srv/puppet":
type => "usr_t", type => "usr_t",
before => File["/srv/puppet"], before => File["/srv/puppet"],
} }
selinux::manage_fcontext { "/srv/puppet/.*":
type => $seltype,
before => File["/srv/puppet"],
}
} else { } else {
file { "/srv/puppet": file { "/srv/puppet":
ensure => directory, ensure => directory,