Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
powerdns
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible
roles
powerdns
Commits
3a75d324
Verified
Commit
3a75d324
authored
5 years ago
by
nd
Browse files
Options
Downloads
Patches
Plain Diff
add support for multiple backends
parent
7b5dc172
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
defaults/main.yml
+1
-1
1 addition, 1 deletion
defaults/main.yml
templates/pdns.conf.j2
+3
-2
3 additions, 2 deletions
templates/pdns.conf.j2
with
4 additions
and
3 deletions
defaults/main.yml
+
1
−
1
View file @
3a75d324
...
...
@@ -10,7 +10,7 @@ powerdns:
"
guardian"
:
"
yes"
"
include-dir"
:
"
/etc/powerdns/pdns.d"
"
launch"
:
-
bind
bind
:
{}
"
master"
:
"
no"
"
reuseport"
:
"
yes"
"
setgid"
:
pdns
...
...
This diff is collapsed.
Click to expand it.
templates/pdns.conf.j2
+
3
−
2
View file @
3a75d324
{% 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 %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment