From 05b5eb9548093ec8d76fdb848ffdcf6cdbdec8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Mon, 1 Aug 2011 12:06:10 +0300 Subject: [PATCH] Fixed depency errors from CentOS puppetmaster install. --- puppet/manifests/init.pp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/puppet/manifests/init.pp b/puppet/manifests/init.pp index 198b959..ea1286e 100644 --- a/puppet/manifests/init.pp +++ b/puppet/manifests/init.pp @@ -187,11 +187,15 @@ class puppet::server::mongrel inherits puppet::client { before => File["/etc/puppet/puppet.conf"], } - exec { "stop-puppetmaster": - command => "pkill -u puppet ; true", - path => "/bin:/usr/bin:/sbin:/usr/sbin", - refreshonly => true, - before => File["/etc/default/puppetmaster"], + case $operatingsystem { + "debian","ubuntu": { + exec { "stop-puppetmaster": + command => "pkill -u puppet ; true", + path => "/bin:/usr/bin:/sbin:/usr/sbin", + refreshonly => true, + before => File["/etc/default/puppetmaster"], + } + } } include ::mongrel