From 01136c832054b83f25adb2dcf92608300edc6f9e Mon Sep 17 00:00:00 2001 From: Khai Do Date: Fri, 1 Apr 2016 11:20:49 -0700 Subject: [PATCH] Customize Gerrit's download command and schema Configure Gerrit's download plugin to show all available protocol to our openstack repos in the downloads list. We support ssh, anonymous http, and anonymous git. Set to not show http because it duplicates anon_http due to change I24946f5feea Depends-on: Ia6a3a28cce62b6bd1570fd0ab5b1224fc35d8284 Change-Id: I6d34e75da71186ca4744525fd1143e75b4394a18 --- modules/openstack_project/manifests/gerrit.pp | 2 ++ modules/openstack_project/manifests/review.pp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp index b7465ceba5..1531ebe238 100644 --- a/modules/openstack_project/manifests/gerrit.pp +++ b/modules/openstack_project/manifests/gerrit.pp @@ -75,6 +75,7 @@ class openstack_project::gerrit ( $report_bug_text = 'Get Help', $report_bug_url = 'http://docs.openstack.org/infra/system-config/project.html#contributing', $index_threads = 1, + $download = {}, ) { class { 'jeepyb::openstackwatch': @@ -211,6 +212,7 @@ class openstack_project::gerrit ( report_bug_text => $report_bug_text, report_bug_url => $report_bug_url, index_threads => $index_threads, + download => $download, } mysql_backup::backup_remote { 'gerrit': diff --git a/modules/openstack_project/manifests/review.pp b/modules/openstack_project/manifests/review.pp index 63ff493926..b225fe2e44 100644 --- a/modules/openstack_project/manifests/review.pp +++ b/modules/openstack_project/manifests/review.pp @@ -139,6 +139,11 @@ class openstack_project::review ( token_private_key => $token_private_key, swift_username => $swift_username, swift_password => $swift_password, + download => { + 'command' => ['checkout', 'cherry_pick', 'pull', 'format_patch'], + 'scheme' => ['ssh', 'anon_http', 'anon_git'], + 'archive' => ['tar', 'tbz2', 'tgz', 'txz'], + }, replication_force_update => true, replication => [ {