diff options
author | nadir <nadir-technik@nadir.org> | 2010-03-07 22:56:02 +0100 |
---|---|---|
committer | nadir <nadir-technik@nadir.org> | 2010-03-07 22:56:02 +0100 |
commit | 23c385e39e89ffd326bf12ad2d7b1640d4f65a95 (patch) | |
tree | 94d5f3ecdb6e70d094f53af5a390e9acb51c1507 /manifests | |
parent | dfdb96c1c071b817d9ccc50cd2e4790a36a78ec7 (diff) |
README, added $puppet_crontime to tune how often a client gets updates
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/cron/linux.pp | 8 |
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", } } |