add support for multiple backends
This commit is contained in:
parent
7b5dc1720b
commit
3a75d32472
2 changed files with 4 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ powerdns:
|
|||
"guardian": "yes"
|
||||
"include-dir": "/etc/powerdns/pdns.d"
|
||||
"launch":
|
||||
- bind
|
||||
bind: {}
|
||||
"master": "no"
|
||||
"reuseport": "yes"
|
||||
"setgid": pdns
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{% 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 %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue