From 3200fe522a711dacbca0403d91d55e8ede40f765 Mon Sep 17 00:00:00 2001 From: s3lph Date: Fri, 5 Feb 2021 21:50:05 +0100 Subject: [PATCH] Make updaters zone key optional --- roles/knot/templates/etc/knot/knot.conf.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/knot/templates/etc/knot/knot.conf.j2 b/roles/knot/templates/etc/knot/knot.conf.j2 index 92b1587..ee49875 100644 --- a/roles/knot/templates/etc/knot/knot.conf.j2 +++ b/roles/knot/templates/etc/knot/knot.conf.j2 @@ -108,9 +108,11 @@ zone: {% for replica in zone.replicas %} acl: acl-xfr-{{ replica }} {% endfor %} -{% for updater in zone.updaters | default([]) %} +{% if 'updaters' in zone %} +{% for updater in zone.updaters %} acl: acl-update-{{ updater }} {% endfor %} +{% endif %} {% for replica in zone.replicas %} notify: remote-{{ replica }} {% endfor %}