diff --git a/puppet/manifests/init.pp b/puppet/manifests/init.pp index 6531993..02d646d 100644 --- a/puppet/manifests/init.pp +++ b/puppet/manifests/init.pp @@ -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"], + } } }