]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use jinja2 templates in tsiggss
authorNicki Křížek <nicki@isc.org>
Fri, 5 Dec 2025 16:18:20 +0000 (17:18 +0100)
committerNicki Křížek <nicki@isc.org>
Tue, 9 Dec 2025 13:23:14 +0000 (14:23 +0100)
- The ns1/named.conf.j2 contains "@" which is a special jinja character,
  use the raw directive to escape it.

bin/tests/system/tsiggss/ns1/named.conf.j2 [moved from bin/tests/system/tsiggss/ns1/named.conf.in with 98% similarity]
bin/tests/system/tsiggss/setup.sh

similarity index 98%
rename from bin/tests/system/tsiggss/ns1/named.conf.in
rename to bin/tests/system/tsiggss/ns1/named.conf.j2
index 7b34c3297f822e849700a37e919cbb0b13a6c8f2..4220564daaa52fa338849b5e910d7080e3c60763 100644 (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;
index ec3e99e1e0611a26d7ca158d21addadc03943209..67606b856d4ee4dc0f0e44f3617eaca4d7a4f4fe 100644 (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 -T KEY key.example.nil.)
 cat ns1/example.nil.db.in ns1/${key}.key >ns1/example.nil.db