From a3b970ab8e6a836e24f29585ce71ffcb0fc9ba32 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Wed, 14 Aug 2013 14:24:18 +0300 Subject: [PATCH] puppet: Fix puppet binary selinux context for Puppet 3 --- puppet/manifests/init.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/puppet/manifests/init.pp b/puppet/manifests/init.pp index b0b4b85..6c9dba5 100644 --- a/puppet/manifests/init.pp +++ b/puppet/manifests/init.pp @@ -67,6 +67,14 @@ class puppet::client { }, } + if versioncmp($::puppetversion, "3") >= 0 { + selinux::manage_fcontext { "/usr/bin/puppet": + type => "puppet_exec_t", + recurse => false, + before => Service["puppet"], + } + } + case $::operatingsystem { "openbsd": { service { "puppet":