From: Paul Wise Date: Sun, 18 Oct 2015 15:52:54 +0000 (+0800) Subject: Only sync logs once per day since we are only transferring rotated logs X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=a459cc650774de8400f433bec40fbb1573c2cb3f;p=mirror%2Fdsa-puppet.git Only sync logs once per day since we are only transferring rotated logs Signed-off-by: Paul Wise --- diff --git a/modules/roles/manifests/weblog_provider.pp b/modules/roles/manifests/weblog_provider.pp index db246210d..ae17dcd52 100644 --- a/modules/roles/manifests/weblog_provider.pp +++ b/modules/roles/manifests/weblog_provider.pp @@ -6,7 +6,7 @@ class roles::weblog_provider { } } else { file { '/etc/cron.d/puppet-weblog-provider': - content => "SHELL=/bin/bash\n\n0 */4 * * * weblogsync sleep $((RANDOM \% 1800)); rsync -a --delete-excluded --include 'www.debian.org-access.log-*gz' --exclude '**' /var/log/apache2/. weblogsync@wolkenstein.debian.org:-weblogs-incoming-\n", + content => "SHELL=/bin/bash\n\n0 1 * * * weblogsync sleep $((RANDOM \% 1800)); rsync -a --delete-excluded --include 'www.debian.org-access.log-*gz' --exclude '**' /var/log/apache2/. weblogsync@wolkenstein.debian.org:-weblogs-incoming-\n", } } }