summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-08-06 19:45:32 +0200
committermh <mh@immerda.ch>2010-08-06 19:59:31 +0200
commitdcdf341af2b32969c47bef5939e34952a6fc7642 (patch)
tree7f0c419c437f917d34d480f32baaa51ebb53324c
parentf67986398868b2dbc26792552e1382cb524d443a (diff)
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.
-rw-r--r--README1
-rw-r--r--manifests/linux.pp3
-rw-r--r--manifests/puppetmaster/checklastrun.pp1
3 files changed, 0 insertions, 5 deletions
diff --git a/README b/README
index 916ce68..f925dfa 100644
--- a/README
+++ b/README
@@ -11,7 +11,6 @@ those files in this module are just examples.
Depends on Modules
------------------
- bc
-- cron
Usage
-----
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"];
}
}