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:
parent
d349554665
commit
4dac913508
|
@ -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,
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
[gerrit]
|
||||
defaultForceUpdate = <%= @replication_force_update %>
|
||||
autoReload = <%= @replication_auto_reload %>
|
||||
|
||||
<% @replication.each do |replication| -%>
|
||||
[remote "<%= replication['name'] %>"]
|
||||
|
|
Loading…
Reference in New Issue