From e4744ad78cdea01360f49dd9ea5f700dfbfa3933 Mon Sep 17 00:00:00 2001 From: Khai Do Date: Thu, 14 Jul 2016 13:00:46 -0700 Subject: [PATCH] Set cron job to gc repositories instead of repack Change I4e171b17a7b4 replaced repack with gc for the git replication and mirrors but did not include the repos for the gerrit site. This will change will enable gc for the repos in the gerrit site and local replication on review.o.o Change-Id: I2ff5f40830c3753f24e65dfb44ae9272266d7be1 Depends-on: I7a5364a07c3e07ffc9a053a73fab0c16861fc1c5 --- modules/openstack_project/manifests/gerrit.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp index bf551226b2..95c09c6126 100644 --- a/modules/openstack_project/manifests/gerrit.pp +++ b/modules/openstack_project/manifests/gerrit.pp @@ -187,7 +187,9 @@ class openstack_project::gerrit ( } if ($testmode == false) { - include gerrit::cron + class { 'gerrit::cron': + gitgc_repos => true, + } class { 'github': username => $github_username, project_username => $github_project_username,