Skip to content

Commit

Permalink
Ensure that lists are expanded in the PowerDNS configuration template (
Browse files Browse the repository at this point in the history
  • Loading branch information
atosatto committed Dec 2, 2018
1 parent a0b6057 commit 55aa3c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## v1.3.1 (Unreleased)
## v1.4.0 (Unreleased)

BUG FIXES:
- Ensure that lists are expanded in the PowerDNS configuration template ([\#55](https://github.com/PowerDNS/pdns-ansible/pull/55))

NEW FEATURES:
- Add an option (`pdns_disable_handlers`) to disable the automated restart of the service on configuration changes ([\#54](https://github.com/PowerDNS/pdns-ansible/pull/54))
Expand Down
8 changes: 6 additions & 2 deletions templates/pdns.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ setgid={{ pdns_group }}
{{ config_item }}=yes
{% elif value == False %}
{{ config_item }}=no
{% elif value is string %}
{{ config_item }}={{ value | string }}
{% elif value is sequence %}
{{ config_item }}={{ value | join(',') }}
{% else %}
{{ config_item }}={{ value | string }}
{% endif %}
Expand All @@ -21,9 +25,9 @@ launch+={{ backend }}
{% for backend_item, value in pdns_backends[backend].items() | sort() -%}
{% if value == True %}
{{ backend_string }}-{{ backend_item }}=yes
{% elif backend_item == False %}
{% elif value == False %}
{{ backend_string }}-{{ backend_item }}=no
{% elif backend_item == None %}
{% elif value == None %}
{{ backend_string }}-{{ backend_item }}=
{% else %}
{{ backend_string }}-{{ backend_item }}={{ value | string }}
Expand Down

0 comments on commit 55aa3c3

Please sign in to comment.