From f2afd94612e62ed7984004578c3f66144e2571a3 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 12 Apr 2011 11:36:45 +0200 Subject: [PATCH] Also ignore puppet noise on s390 --- modules/debian-org/files/dsa-puppet-stuff.cron | 7 ++++++- modules/debian-org/files/dsa-puppet-stuff.cron.ignore | 10 ++++++++++ modules/debian-org/manifests/init.pp | 9 +++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 modules/debian-org/files/dsa-puppet-stuff.cron.ignore diff --git a/modules/debian-org/files/dsa-puppet-stuff.cron b/modules/debian-org/files/dsa-puppet-stuff.cron index 60486c28..9d2204bf 100644 --- a/modules/debian-org/files/dsa-puppet-stuff.cron +++ b/modules/debian-org/files/dsa-puppet-stuff.cron @@ -1,4 +1,9 @@ +## +## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. +## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git +## + SHELL=/bin/bash @hourly root [ ! -d /var/cache/dsa ] || touch /var/cache/dsa/cron.alive -34 */4 * * * root if [ -x /usr/sbin/puppetd ]; then sleep $(( $RANDOM \% 3600 )); if [ -x /usr/bin/timeout ]; then TO="timeout 3600"; else TO=""; fi; $TO /usr/sbin/puppetd -o --no-daemonize 2>&1 | grep -v 'v6: error fetching interface information: Device not found' ; fi +34 */4 * * * root if [ -x /usr/sbin/puppetd ]; then sleep $(( $RANDOM \% 3600 )); if [ -x /usr/bin/timeout ]; then TO="timeout 3600"; else TO=""; fi; tmp="$(tempfile)"; egrep -v '^(#|$)' /etc/dsa/cron.ignore.dsa-puppet-stuff > "$tmp" && $TO /usr/sbin/puppetd -o --no-daemonize 2>&1 | egrep --text -v -f "$tmp"; rm -f "$tmp"; fi @daily root find /var/lib/puppet/clientbucket/ -type f -mtime +30 -atime +30 -exec rm {} \+ diff --git a/modules/debian-org/files/dsa-puppet-stuff.cron.ignore b/modules/debian-org/files/dsa-puppet-stuff.cron.ignore new file mode 100644 index 00000000..ef923506 --- /dev/null +++ b/modules/debian-org/files/dsa-puppet-stuff.cron.ignore @@ -0,0 +1,10 @@ +## +## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. +## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git +## +# this is a list of patterns, one per line, of things that puppet's +# cron output shouldn't mail to us. + +^v6: error fetching interface information: Device not found$ +^pcilib: Cannot open /proc/bus/pci$ +^lspci: Cannot find any working access method\.$ diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp index 37494c71..8ab16b58 100644 --- a/modules/debian-org/manifests/init.pp +++ b/modules/debian-org/manifests/init.pp @@ -102,6 +102,15 @@ class debian-org { source => "puppet:///modules/debian-org/rc.local", notify => Exec["rc.local start"], ; + + "/etc/dsa": + mode => 0755, + ensure => directory, + ; + "/etc/dsa/cron.ignore.dsa-puppet-stuff": + source => "puppet:///modules/debian-org/dsa-puppet-stuff.cron.ignore", + require => Package["debian.org"] + ; } # set mmap_min_addr to 4096 to mitigate -- 2.39.2