From dd481ef19e3bfe5438e38d74f77d07ebc3ecdd89 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 5 Dec 2014 19:18:49 +0100 Subject: [PATCH] On new buildds, re-create schroots weekly --- modules/buildd/manifests/init.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/buildd/manifests/init.pp b/modules/buildd/manifests/init.pp index 877927967..05e028224 100644 --- a/modules/buildd/manifests/init.pp +++ b/modules/buildd/manifests/init.pp @@ -98,4 +98,11 @@ class buildd ($ensure=present) { file { '/etc/cron.d/puppet-buildd-aptitude': content => "*/5 * * * * root /usr/local/sbin/buildd-schroot-aptitude-kill\n", } + + + if $has_srv_buildd { + file { '/etc/cron.d/puppet-update-buildd-schroots': + content => "13 21 * * 0 root PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin setup-all-dchroots buildd\n", + } + } } -- 2.20.1