From 0e587d61e40d6706fc5c6aa4ee6803a71827a6bd Mon Sep 17 00:00:00 2001 From: s3lph Date: Sat, 6 Feb 2021 00:09:14 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=A6=20actually=20use=20tsig=20keys=20f?= =?UTF-8?q?or=20notifies/xfrs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/knot/templates/etc/knot/knot.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/knot/templates/etc/knot/knot.conf.j2 b/roles/knot/templates/etc/knot/knot.conf.j2 index 323edb3..707030a 100644 --- a/roles/knot/templates/etc/knot/knot.conf.j2 +++ b/roles/knot/templates/etc/knot/knot.conf.j2 @@ -38,6 +38,9 @@ remote: {% for remote in ( (zones | map(attribute='replicas') ) + (zones | map(attribute='masters') ) ) | flatten | unique %} - id: remote-{{ remote }} +{% if knot_tsig_key is defined %} + key: {{ knot_tsig_key.name }} +{% endif %} {% for address in hostvars[remote].knot_dns_addresses %} address: "{{ address }}" {% endfor %}