Skip to content
Snippets Groups Projects
Verified Commit 3a75d324 authored by nd's avatar nd
Browse files

add support for multiple backends

parent 7b5dc172
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ powerdns:
"guardian": "yes"
"include-dir": "/etc/powerdns/pdns.d"
"launch":
- bind
bind: {}
"master": "no"
"reuseport": "yes"
"setgid": pdns
......
{% set array_values = ['allow-axfr-ips', 'launch'] %}
{% set array_values = ['allow-axfr-ips'] %}
{% set dict_array_values = ['launch'] %}
{% for option in powerdns.config.keys()|sort %}
{{ option }}={% if option in array_values %}{{ powerdns.config[option]|join(',' ) }}{% else %}{{ powerdns.config[option] }}{% endif %}
{{ 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 %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment