cc65640ef4
We need to configure replication. Change-Id: I1bb61969a5adf37b07e43701d9a867b409a5ccf0
33 lines
905 B
Django/Jinja
33 lines
905 B
Django/Jinja
# This file is managed by ansible.
|
|
# https://opendev.org/opendev/system-config
|
|
|
|
[gerrit]
|
|
defaultForceUpdate = true
|
|
autoReload = false
|
|
replicateOnStartup = false
|
|
|
|
{% for replication in gerrit_replication %}
|
|
[remote "{{ replication.name }}"]
|
|
url = {{ replication.url }}${name}.git
|
|
{% if 'replicationDelay' in replication %}
|
|
replicationDelay = {{ replication.replicationDelay }}
|
|
{% 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 %}
|
|
{% endfor %}
|