Add support for enabling replication configuration autoReload

This will allow us to change the replication configuration without
requiring a restart of gerrit [1].

[1]: https://gerrit.googlesource.com/plugins/replication/+doc/master/src/main/resources/Documentation/config.md

Change-Id: Ia360a18f1cfb88800f4c644d8ebd0fe2c2b08b31
This commit is contained in:
David Moreau Simard 2019-04-04 11:09:53 -04:00
parent d349554665
commit 4dac913508
No known key found for this signature in database
GPG Key ID: CBEB466764A9E621
2 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,8 @@
# A boolean enabling local replication for apache acceleration
# replication_force_update:
# A boolean enabling replication to force updates to remote
# replication_auto_reload:
# A boolean enabling automatic reload of the replication configuration
# replicate_path:
# The path to the local git replica if replicate_local is enabled
# gitweb:
@ -249,6 +251,7 @@ class gerrit(
$replicate_local = false,
$replicate_path = '/opt/lib/git',
$replication_force_update = true,
$replication_auto_reload = false,
$replication = [],
$gitweb = true,
$cgit = false,

View File

@ -3,6 +3,7 @@
[gerrit]
defaultForceUpdate = <%= @replication_force_update %>
autoReload = <%= @replication_auto_reload %>
<% @replication.each do |replication| -%>
[remote "<%= replication['name'] %>"]