Use jinja2 templates in tsiggss

- The ns1/named.conf.j2 contains "@" which is a special jinja character,
  use the raw directive to escape it.

(cherry picked from commit 1aa2f7249a)
This commit is contained in:
Nicki Křížek 2025-12-05 17:18:20 +01:00
parent 38c779740f
commit 425af8d0b1
2 changed files with 2 additions and 2 deletions

View file

@ -39,11 +39,13 @@ zone "example.nil." IN {
type primary;
file "example.nil.db";
{% raw %}
update-policy {
grant Administrator@EXAMPLE.NIL wildcard * A AAAA SRV CNAME;
grant testdenied@EXAMPLE.NIL wildcard * TXT;
grant "local:auth.sock" external * CNAME;
};
{% endraw %}
/* we need to use check-names ignore so _msdcs A records can be created */
check-names ignore;

View file

@ -13,7 +13,5 @@
. ../conf.sh
copy_setports ns1/named.conf.in ns1/named.conf
key=$($KEYGEN -Cq -K ns1 -a $DEFAULT_ALGORITHM -b $DEFAULT_BITS -n HOST -T KEY key.example.nil.)
cat ns1/example.nil.db.in ns1/${key}.key >ns1/example.nil.db