puppet: Fixes for puppetmaster SELinux contexts.
This commit is contained in:
parent
c106c54103
commit
e56702c0d0
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue