From ded2ea1f5d8e48229c8f1ea0cdf98872fa783e26 Mon Sep 17 00:00:00 2001
From: Khai Do <zaro0508@gmail.com>
Date: Thu, 31 Mar 2016 12:41:20 -0700
Subject: [PATCH] Change http download command to point to git.o.o

The http download command on the Gerrit change screen points to
review.o.o We prefer it to point to the replicated repos because
those are faster and there are many more of them.

Depends-on: I4fa1cc7b1f0b717c35dc4eccedb635c9f3680c26
Change-Id: I24946f5feeae11b6659982d79f119d84335cc237
---
 modules/openstack_project/manifests/gerrit.pp | 2 ++
 modules/openstack_project/manifests/review.pp | 1 +
 2 files changed, 3 insertions(+)

diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp
index b7465ceba5..75af9bf12d 100644
--- a/modules/openstack_project/manifests/gerrit.pp
+++ b/modules/openstack_project/manifests/gerrit.pp
@@ -8,6 +8,7 @@ class openstack_project::gerrit (
   $mysql_password,
   $vhost_name = $::fqdn,
   $canonicalweburl = "https://${::fqdn}/",
+  $git_http_url = '',
   $serveradmin = 'webmaster@openstack.org',
   $ssh_host_key = '/home/gerrit2/review_site/etc/ssh_host_rsa_key',
   $ssh_project_key = '/home/gerrit2/review_site/etc/ssh_project_rsa_key',
@@ -104,6 +105,7 @@ class openstack_project::gerrit (
   class { '::gerrit':
     vhost_name                          => $vhost_name,
     canonicalweburl                     => $canonicalweburl,
+    git_http_url                        => $git_http_url,
     # opinions
     allow_drafts                        => false,
     enable_melody                       => true,
diff --git a/modules/openstack_project/manifests/review.pp b/modules/openstack_project/manifests/review.pp
index 63ff493926..e60c33f655 100644
--- a/modules/openstack_project/manifests/review.pp
+++ b/modules/openstack_project/manifests/review.pp
@@ -92,6 +92,7 @@ class openstack_project::review (
   }
 
   class { 'openstack_project::gerrit':
+    git_http_url                        => 'https://git.openstack.org/',
     ssl_cert_file                       => $ssl_cert_file,
     ssl_key_file                        => $ssl_key_file,
     ssl_chain_file                      => $ssl_chain_file,