On new buildds, re-create schroots weekly
authorPeter Palfrader <peter@palfrader.org>
Fri, 5 Dec 2014 18:18:49 +0000 (19:18 +0100)
committerPeter Palfrader <peter@palfrader.org>
Fri, 5 Dec 2014 18:18:49 +0000 (19:18 +0100)
modules/buildd/manifests/init.pp

index 8779279..05e0282 100644 (file)
@@ -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",
+               }
+       }
 }