bind-formula/bind/files/debian/named.conf.local
Skyler Berg 6891f1d7f2 Switch logging dir to /var/log/named for Ubuntu
Apparmor expects /var/log/named to be the logging directory for bind9
in Ubuntu 12.04 (and most likely 14.04).
2014-11-19 16:16:56 -08:00

35 lines
949 B
Text

# vim: sts=2 ts=2 sw=2 et ai
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
{% for key,args in salt['pillar.get']('bind:configured_zones', {}).iteritems() -%}
{%- set file = salt['pillar.get']("available_zones:" + key + ":file") %}
{%- set masters = salt['pillar.get']("available_zones:" + key + ":masters") %}
zone "{{ key }}" {
type {{ args['type'] }};
file "zones/{{ file }}";
{% if args['allow-update'] is defined -%}
allow-update { {{args['allow-update']}}; };
{%- endif %}
{% if args['type'] == "master" -%}
{% if args['notify'] -%}
notify yes;
{% else -%}
notify no;
{%- endif -%}
{% else -%}
notify no;
masters { {{ masters }} };
{%- endif %}
};
{% endfor %}
logging {
channel "querylog" { file "{{ map.log_dir }}/query.log"; print-time yes; };
category queries { querylog; };
};