ansible-role-powerdns/templates/pdns.conf.j2
Julian Rother a270aad58e
Bookworm compatibility
Disables security update notifications. In Bookworm PowerDNS fails to start
with security update notifications enabled.

Adds special handling of config value "omit" for setting new config options
in a backwards-compatible way.
2023-10-17 23:40:41 +02:00

7 lines
410 B
Django/Jinja

{% set array_values = ['allow-axfr-ips'] %}
{% set dict_array_values = ['launch'] %}
{% for option in powerdns.config.keys()|sort if powerdns.config[option] != omit %}
{{ option }}={% if option in array_values %}{{ powerdns.config[option]|join(',' ) }}{% elif option in dict_array_values %}{{ powerdns.config[option].keys()|sort()|join(',' ) }}{% else %}{{ powerdns.config[option] }}{% endif %}
{% endfor %}