puppet: Fixed puppet::client for CentOS 7.

This commit is contained in:
Timo Makinen 2014-07-21 16:07:09 +03:00
parent f2aabbfe6c
commit e784933edb

View file

@ -80,12 +80,14 @@ class puppet::client {
} }
if versioncmp($::puppetversion, "3") >= 0 { if versioncmp($::puppetversion, "3") >= 0 {
if $::operatingsystem in ["CentOS","RedHat"] and $::operatingsystemrelease =~ /^[1-6]\..*/ {
selinux::manage_fcontext { "/usr/bin/puppet": selinux::manage_fcontext { "/usr/bin/puppet":
type => "puppet_exec_t", type => "puppet_exec_t",
recurse => false, recurse => false,
before => Service["puppet"], before => Service["puppet"],
} }
} }
}
case $::operatingsystem { case $::operatingsystem {
"openbsd": { "openbsd": {