diff --git a/modules/zuul/manifests/init.pp b/modules/zuul/manifests/init.pp index 996ce04b51..0a31f10b2a 100644 --- a/modules/zuul/manifests/init.pp +++ b/modules/zuul/manifests/init.pp @@ -222,6 +222,17 @@ class zuul ( require => File['/etc/init.d/zuul'], } + cron { 'zuul_repack': + user => 'zuul', + weekday => '0', + hour => '4', + minute => '7', + command => 'find /var/lib/zuul/git/ -maxdepth 3 -type d -name ".git" -exec git --git-dir="{}" pack-refs --all \;', + environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin', + require => [User['zuul'], + File['/var/lib/zuul/git']], + } + apache::vhost { $vhost_name: port => 443, docroot => 'MEANINGLESS ARGUMENT',