Repack git replicas.

Change-Id: I7c328edac3ac407de0e9c89f841563cb754217f1
Reviewed-on: https://review.openstack.org/16990
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
This commit is contained in:
James E. Blair 2012-11-27 10:34:42 -08:00 committed by Jenkins
parent 277286ba3f
commit 90610ff30b

View File

@ -232,6 +232,14 @@ class openstack_project::gerrit (
owner => 'gerrit2',
require => Class['::gerrit'],
}
cron { 'mirror_repack':
user => 'gerrit2',
weekday => '0',
hour => '4',
minute => '7',
command => 'find /var/lib/git/ -type d -name "*.git" -print -exec git --git-dir="{}" repack -afd \;',
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
}
}
file { '/home/gerrit2/projects.yaml':