system-config/playbooks/roles/gerrit/templates/replication.config.j2
Monty Taylor cc65640ef4 Add replication config to gerrit ansible
We need to configure replication.

Change-Id: I1bb61969a5adf37b07e43701d9a867b409a5ccf0
2019-12-17 08:13:34 -05:00

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 %}