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,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"],
}
}
}