rewrite most of this role to allow multiple backends
This commit is contained in:
parent
144736d652
commit
ca078de05c
7 changed files with 93 additions and 574 deletions
|
|
@ -1,6 +1,6 @@
|
|||
$ORIGIN {{ item }}.
|
||||
$TTL 60
|
||||
@ SOA {{ dnsserver.zones[item].SOA }}
|
||||
@ SOA {{ powerdns.zones[item].SOA }}
|
||||
{% macro generate_records(records, scope='@') %}
|
||||
{% for k, v in records.items() %}
|
||||
{% if v is string %}
|
||||
|
|
@ -23,4 +23,4 @@ $TTL 60
|
|||
{%- endif %}
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
{{ generate_records(dnsserver.zones[item]) }}
|
||||
{{ generate_records(powerdns.zones[item]) }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue