summaryrefslogtreecommitdiff
path: root/roles/network/bind/templates/slave-zones.j2
blob: 7cf3a9b2e3c6efa151c7373fab762a64cf5370c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Masters

{% for name,config in bind_slave_zones.items() %}
masters {{ name }} {
{%   for master in config.masters %}
        {{ master }};
{%   endfor %}
};

{% endfor %}

// Zones
{% for name,config in bind_slave_zones.items() %}
{%   for zone in config.zones %}

zone "{{ zone }}" {
        type slave;
        file "/var/cache/bind/db.{{ zone }}.sec";
        masters { {{ name }}; };
};
{%   endfor %}
{% endfor %}