From afebc17bb91d91ea614503c567eb0d591127d6d7 Mon Sep 17 00:00:00 2001 From: varac Date: Tue, 19 Jan 2010 23:42:46 +0100 Subject: added ubuntu support --- manifests/cron/base.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifests/cron') diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp index 3f7f8c0..7244e02 100644 --- a/manifests/cron/base.pp +++ b/manifests/cron/base.pp @@ -8,7 +8,7 @@ class puppet::cron::base inherits puppet::base { notify => undef } case $operatingsystem { - debian,openbsd: { + debian,openbsd,ubuntu: { #it's already disabled } default: { -- cgit v1.2.3 From a15d322a91e6c438f65a23b4fe5fb8d63c32def0 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 4 Feb 2010 17:44:26 +0100 Subject: Allowes puppet::cron also on the puppetmaster server --- manifests/cron/base.pp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'manifests/cron') 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 -- cgit v1.2.3 From 23c385e39e89ffd326bf12ad2d7b1640d4f65a95 Mon Sep 17 00:00:00 2001 From: nadir Date: Sun, 7 Mar 2010 22:56:02 +0100 Subject: README, added $puppet_crontime to tune how often a client gets updates --- manifests/cron/linux.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'manifests/cron') 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", } } -- cgit v1.2.3