Merge "Allow puppet to configure Gerrit's canonicalGitUrl option"

This commit is contained in:
Jenkins 2016-07-19 20:43:29 +00:00 committed by Gerrit Code Review
commit 6abd30a80d
2 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,8 @@
# eg., https://review.example.com/
# git_http_url:
# Optional base URL for repositories available over the HTTP protocol
# canonical_git_url:
# URL for repositories available over the anonymous git protocol
# ssl_cert_file:
# ssl_key_file:
# Used in the Apache virtual host to specify the SSL cert and key files.
@ -141,6 +143,7 @@ class gerrit(
$redirect_to_canonicalweburl = true,
$canonicalweburl = "https://${::fqdn}/",
$git_http_url = '',
$canonical_git_url = '',
$robots_txt_source = '', # If left empty, the gerrit default will be used.
$serveradmin = "webmaster@${::fqdn}",
$ssl_cert_file = '/etc/ssl/certs/ssl-cert-snakeoil.pem',
@ -350,6 +353,7 @@ class gerrit(
# - $mysql_host
# - $canonicalweburl
# - $git_http_url
# - $canonical_git_url
# - $smtpserver
# - $sendemail_from
# - $sendemail_include_diff

View File

@ -10,6 +10,9 @@
<% if @git_http_url != "" -%>
gitHttpUrl = <%= @git_http_url %>
<% end -%>
<% if @canonical_git_url != "" -%>
canonicalGitUrl = <%= @canonical_git_url %>
<% end -%>
[database]
type = MYSQL
hostname = <%= @mysql_host %>