982763cc1e
Enable Gerrit replication autoreload to simplify the process of adding new Gitea backend servers and removing old ones. Without this we would need to enable remote Gerrit plugin administration (which is global for all plugins including plugin installations) or restart Gerrit everytime we want ot change the repliction config file. Note we did have this setting set at one time and it was removed in e7c6b7602609d14bc49eaca958bcdef788e861cf. This was due to replication events being dropped and gitea's not being kept in sync when the plugin updated its config. I think we can toggle this setting to true while we add do gitea server work and plan for the occasional manual full sync to ensure nothing gets missed. Then go back to having this set to false long term when we are done. Change-Id: I8cf37f6b84516e36deb143a36697874c640c0635
41 lines
1.1 KiB
Django/Jinja
41 lines
1.1 KiB
Django/Jinja
# This file is managed by ansible.
|
|
# https://opendev.org/opendev/system-config
|
|
|
|
[gerrit]
|
|
defaultForceUpdate = true
|
|
autoReload = true
|
|
replicateOnStartup = false
|
|
|
|
{% for replication in gerrit_replication %}
|
|
[remote "{{ replication.name }}"]
|
|
url = {{ replication.url }}${name}.git
|
|
{% if 'replicationDelay' in replication %}
|
|
replicationDelay = {{ replication.replicationDelay }}
|
|
{% endif %}
|
|
{% if 'timeout' in replication %}
|
|
timeout = {{ replication.timeout }}
|
|
{% endif %}
|
|
{% if 'threads' in replication %}
|
|
threads = {{ replication.threads }}
|
|
{% endif %}
|
|
{% if 'authGroup' in replication %}
|
|
authGroup = {{ replication.authGroup }}
|
|
{% endif %}
|
|
{% if 'replicatePermissions' in replication %}
|
|
replicatePermissions = {{ replication.replicatePermissions }}
|
|
{% endif %}
|
|
{% if 'mirror' in replication %}
|
|
mirror = {{ replication.mirror }}
|
|
{% endif %}
|
|
{% if 'projects' in replication %}
|
|
{% for project in replication.projects %}
|
|
projects = {{ project }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if 'push' in replication %}
|
|
{% for refspec in replication.push %}
|
|
push = {{ refspec }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|