From a3545b164601c3e2006c9c60433b2e7c3a79fb05 Mon Sep 17 00:00:00 2001 From: s3lph Date: Wed, 5 Apr 2023 00:10:52 +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 3bc8afb..ace3215 100644 --- a/roles/knot/templates/etc/knot/knot.conf.j2 +++ b/roles/knot/templates/etc/knot/knot.conf.j2 @@ -48,7 +48,7 @@ remote: {% endfor %} acl: -{% for remote in (zones | map(attribute='replicas') ) + (zones | map(attribute='replicate', default={}) | map(attribute=inventory_hostname, default=[]) | flatten ) | flatten | unique %} +{% for remote in ( ( zones | map(attribute='replicas') ) + (zones | map(attribute='replicate', default={}) | map(attribute=inventory_hostname, default=[]) ) ) | flatten | unique %} - id: acl-xfr-{{ remote }} action: transfer