summaryrefslogtreecommitdiff
path: root/manifests/cron/base.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2010-02-04 17:44:26 +0100
committervarac <varacanero@zeromail.org>2010-02-04 17:44:26 +0100
commita15d322a91e6c438f65a23b4fe5fb8d63c32def0 (patch)
tree5562ca3bb1d5c58e02aeeb31e233b4bd393e6e1a /manifests/cron/base.pp
parent32d27ed3e0378a5e4545e247115e371b92b9924e (diff)
Allowes puppet::cron also on the puppetmaster server
Diffstat (limited to 'manifests/cron/base.pp')
-rw-r--r--manifests/cron/base.pp10
1 files changed, 8 insertions, 2 deletions
diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp
index 7244e02..5fc55d2 100644
--- a/manifests/cron/base.pp
+++ b/manifests/cron/base.pp
@@ -4,9 +4,15 @@ class puppet::cron::base inherits puppet::base {
Service['puppet']{
enable => false,
}
- File['puppet_config']{
- notify => undef
+
+ if defined (puppet::puppetmaster) {}
+ else {
+ File['puppet_config']{
+ notify => undef
+ }
}
+
+
case $operatingsystem {
debian,openbsd,ubuntu: {
#it's already disabled