Add the Gerrit replication plugin paramater 'defaultForceUpdate'

The Gerrit 2.9 replication plugin added an explicit defaultForceUpdate
parameter.  This change adds it to the puppet script and sets the parameter
to true.

Change-Id: Ia77319ec95636e42d0b0860901dc6f3b34f4750d
This commit is contained in:
Khai Do
2015-02-11 17:00:48 -08:00
parent 73ec07cce7
commit fd2d333393
2 changed files with 6 additions and 0 deletions

View File

@@ -68,6 +68,8 @@
# A URL for the remote contact store application
# replicate_local:
# A boolean enabling local replication for apache acceleration
# replication_force_update:
# A boolean enabling replication to force updates to remote
# replicate_path:
# The path to the local git replica if replicate_local is enabled
# gitweb:
@@ -147,6 +149,7 @@ class gerrit(
$melody_session = false,
$replicate_local = false,
$replicate_path = '/opt/lib/git',
$replication_force_update = true,
$replication = [],
$gitweb = true,
$cgit = false,

View File

@@ -1,6 +1,9 @@
# This file is managed by puppet.
# https://git.openstack.org/cgit/openstack-infra/system-config
[gerrit]
defaultForceUpdate = <%= @replication_force_update %>
<% @replication.each do |replication| -%>
[remote "<%= replication['name'] %>"]
url = <%= replication['url'] %>${name}.git