Add support for secondary-to-secondary replication

This commit is contained in:
s3lph 2023-04-04 23:53:22 +02:00
parent 2398e99d65
commit c337831383

View file

@ -137,7 +137,7 @@ zone:
acl: acl-update-{{ updater }}
{% endfor %}
{% endif %}
{% for replica in zone.replicas + ( (zone.replicate | default({}) )[inventory_hostname] | default([]) ) %}
{% for replica in zone.replicas + ( (zone.replicate | default({}) ).get(inventory_hostname, []) ) %}
notify: remote-{{ replica }}
{% endfor %}
{% endif %}