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:
parent
277286ba3f
commit
90610ff30b
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user