summaryrefslogtreecommitdiff
path: root/manifests/cron
diff options
context:
space:
mode:
authornadir <nadir-technik@nadir.org>2010-03-07 22:56:02 +0100
committernadir <nadir-technik@nadir.org>2010-03-07 22:56:02 +0100
commit23c385e39e89ffd326bf12ad2d7b1640d4f65a95 (patch)
tree94d5f3ecdb6e70d094f53af5a390e9acb51c1507 /manifests/cron
parentdfdb96c1c071b817d9ccc50cd2e4790a36a78ec7 (diff)
README, added $puppet_crontime to tune how often a client gets updates
Diffstat (limited to 'manifests/cron')
-rw-r--r--manifests/cron/linux.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/cron/linux.pp b/manifests/cron/linux.pp
index be17498..75f11a3 100644
--- a/manifests/cron/linux.pp
+++ b/manifests/cron/linux.pp
@@ -4,9 +4,15 @@ class puppet::cron::linux inherits puppet::linux {
case $puppet_config {
'': { $puppet_config = '/etc/puppet/puppet.conf' }
}
+
+ case $puppet_crontime {
+ '': { $puppet_crontime = '0,30 * * * *' }
+ }
+
+
File['/etc/cron.d/puppetd.cron']{
source => undef,
content => "# run puppet
-0,30 * * * * root /usr/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'\n",
+$puppet_crontime root /usr/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'\n",
}
}