From 2334e2ffded8f0d313c9c748c931503046ad4367 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 31 Oct 2009 16:23:53 +0100 Subject: don't notify service if we run as cron --- manifests/cron/base.pp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'manifests/cron/base.pp') diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp index 76e1099..3f7f8c0 100644 --- a/manifests/cron/base.pp +++ b/manifests/cron/base.pp @@ -2,7 +2,10 @@ class puppet::cron::base inherits puppet::base { Service['puppet']{ - enable => false, + enable => false, + } + File['puppet_config']{ + notify => undef } case $operatingsystem { debian,openbsd: { @@ -15,8 +18,8 @@ class puppet::cron::base inherits puppet::base { } } exec{'stop_puppet': - command => 'kill `cat /var/run/puppet/puppetd.pid`', - onlyif => 'test -f /var/run/puppet/puppetd.pid', - require => Service['puppet'], + command => 'kill `cat /var/run/puppet/puppetd.pid`', + onlyif => 'test -f /var/run/puppet/puppetd.pid', + require => Service['puppet'], } } -- cgit v1.2.3