puppet: Fixed puppet::client for CentOS 7.
This commit is contained in:
parent
f2aabbfe6c
commit
e784933edb
1 changed files with 6 additions and 4 deletions
|
@ -80,10 +80,12 @@ class puppet::client {
|
|||
}
|
||||
|
||||
if versioncmp($::puppetversion, "3") >= 0 {
|
||||
selinux::manage_fcontext { "/usr/bin/puppet":
|
||||
type => "puppet_exec_t",
|
||||
recurse => false,
|
||||
before => Service["puppet"],
|
||||
if $::operatingsystem in ["CentOS","RedHat"] and $::operatingsystemrelease =~ /^[1-6]\..*/ {
|
||||
selinux::manage_fcontext { "/usr/bin/puppet":
|
||||
type => "puppet_exec_t",
|
||||
recurse => false,
|
||||
before => Service["puppet"],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue