e7eae0b4d2
With the advent of ACL-controlled abandon and restore capability in more recent Gerrit releases, we can now put this power in the hands of core reviewers for individual projects and should no longer need to rely on hacky system-wide automated rules to abandon stale changes. Change-Id: I85c8ebc548df8328437615bca472eddd4fc0375f
24 lines
550 B
Puppet
24 lines
550 B
Puppet
# == Class: gerrit::cron
|
|
#
|
|
class gerrit::cron {
|
|
|
|
cron { 'gerrit_repack':
|
|
user => 'gerrit2',
|
|
weekday => '0',
|
|
hour => '4',
|
|
minute => '7',
|
|
command => 'find /home/gerrit2/review_site/git/ -type d -name "*.git" -print -exec git --git-dir="{}" repack -afd \;',
|
|
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
|
}
|
|
|
|
cron { 'expireoldreviews':
|
|
ensure => 'absent',
|
|
user => 'gerrit2',
|
|
}
|
|
|
|
cron { 'removedbdumps':
|
|
ensure => 'absent',
|
|
user => 'gerrit2',
|
|
}
|
|
}
|