system-config/playbooks/roles/gerrit/templates/replication.config.j2

41 lines
1.1 KiB
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 '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 %}