From c3378313839066bcd12701d13abe402993e34d51 Mon Sep 17 00:00:00 2001 From: s3lph Date: Tue, 4 Apr 2023 23:53:22 +0200 Subject: [PATCH] Add support for secondary-to-secondary replication --- roles/knot/templates/etc/knot/knot.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/knot/templates/etc/knot/knot.conf.j2 b/roles/knot/templates/etc/knot/knot.conf.j2 index e99823a..dec9cc6 100644 --- a/roles/knot/templates/etc/knot/knot.conf.j2 +++ b/roles/knot/templates/etc/knot/knot.conf.j2 @@ -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 %}