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:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user