869dd5b62a
* Add playbook dns to manage internal dns master servers * Add role to manage PowerDNS Admin Web Frontend for PowerDNS * Move dns zone related data from mesh list to a simpler dict with a simple zone list * Update role service-bind-slave * Update Readme.md * Add requirements.yml * Update .gitignore
28 lines
577 B
Django/Jinja
28 lines
577 B
Django/Jinja
//
|
|
// {{ ansible_managed }}
|
|
//
|
|
|
|
// ACLs
|
|
masters "ns-master-ffmwu" {
|
|
{{ dns_internal.master_ipv4 | ipaddr('address') }};
|
|
{{ dns_internal.master_ipv6 | ipaddr('address') }};
|
|
};
|
|
|
|
acl "internal" {
|
|
{% for network in internal_prefixes %}
|
|
{{ network.ipv4 | ipaddr('net') | ipaddr('network/prefix') }};
|
|
{{ network.ipv6 | ipaddr('net') | ipaddr('network/prefix') }};
|
|
{% endfor %}
|
|
};
|
|
|
|
// DNS forward zones
|
|
{% for zone in dns_internal.zones %}
|
|
zone "{{ zone }}." {
|
|
type slave;
|
|
file "{{ zone }}.db";
|
|
masters { ns-master-ffmwu; };
|
|
};
|
|
{% if not loop.last %}
|
|
|
|
{% endif %}
|
|
{% endfor %}
|