From dcdf341af2b32969c47bef5939e34952a6fc7642 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 6 Aug 2010 19:45:32 +0200 Subject: remove unnecessary service (cron) notification There is no need to notify the cron service after placing something in /etc/cron.d. This means that we can also remove the dependency to cron, as we don't refer to any managed resource of the cron module anymore. --- manifests/linux.pp | 3 --- manifests/puppetmaster/checklastrun.pp | 1 - 2 files changed, 4 deletions(-) (limited to 'manifests') diff --git a/manifests/linux.pp b/manifests/linux.pp index cfdac71..d8095f8 100644 --- a/manifests/linux.pp +++ b/manifests/linux.pp @@ -16,12 +16,9 @@ class puppet::linux inherits puppet::base { require => Package[puppet], } - include ::cron - file{'/etc/cron.d/puppetd.cron': source => [ "puppet://$server/modules/puppet/cron.d/puppetd.${operatingsystem}", "puppet://$server/modules/puppet/cron.d/puppetd" ], owner => root, group => 0, mode => 0644, - notify => Service['cron']; } } diff --git a/manifests/puppetmaster/checklastrun.pp b/manifests/puppetmaster/checklastrun.pp index 0c3af5f..96d59d5 100644 --- a/manifests/puppetmaster/checklastrun.pp +++ b/manifests/puppetmaster/checklastrun.pp @@ -8,6 +8,5 @@ class puppet::puppetmaster::checklastrun { content => "40 10,22 * * * root /usr/local/bin/puppetlast\n", require => File["/usr/local/bin/puppetlast"], owner => root, group => 0, mode => 0644, - notify => service["cron"]; } } -- cgit v1.2.3