]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add shared templates for the named.conf options plumbing
authorNicki Křížek <nicki@isc.org>
Thu, 23 Jul 2026 16:25:04 +0000 (16:25 +0000)
committerNicki Křížek <nicki@isc.org>
Thu, 6 Aug 2026 11:50:09 +0000 (13:50 +0200)
commitdb95d9684dcd32a2920827fdb3ae5c2c8f77d698
treea6c29eba9159e7a28cc2116181fd6e527e8946af
parentec9ba4ac823d445372a9bce0149a40b8a7a3bd02
Add shared templates for the named.conf options plumbing

Almost every test instance's options block starts with the same seven
statements varying only in the instance address: the source-address
trio, port, pid-file, and the listen-on pair. Provide them as jinja2
partials in _common/options/ plus two umbrellas built on the
auto-injected per-instance `ns` variable: options.conf.j2 for the
v4-only case and options-dual.conf.j2 for dual-stack instances.

The partials carry no indentation of their own: consumers pull them in
with {% include_indented %} at the desired depth, so the templates do
not hardcode the block structure they are used in.

Semantic options (recursion, dnssec-validation, notify, allow-*) stay
in the individual config files by design.

Assisted-by: Claude:claude-fable-5
bin/tests/system/_common/options-dual.conf.j2 [new file with mode: 0644]
bin/tests/system/_common/options.conf.j2 [new file with mode: 0644]
bin/tests/system/_common/options/listen-dual.conf.j2 [new file with mode: 0644]
bin/tests/system/_common/options/listen.conf.j2 [new file with mode: 0644]
bin/tests/system/_common/options/server.conf.j2 [new file with mode: 0644]
bin/tests/system/_common/options/sources-dual.conf.j2 [new file with mode: 0644]
bin/tests/system/_common/options/sources-v6.conf.j2 [new file with mode: 0644]
bin/tests/system/_common/options/sources.conf.j2 [new file with mode: 0644]