mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 17:50:23 +00:00

To process hash entries in deterministic order.
Without this patch, config entries were different for every run
and required a service restart when nothing actually changed.
Doing it similar to
0fe2f7e66b
45 lines
1.4 KiB
Text
45 lines
1.4 KiB
Text
//
|
|
// named.conf
|
|
//
|
|
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
|
|
// server as a caching only nameserver (as a localhost DNS resolver only).
|
|
//
|
|
// See /usr/share/doc/bind*/sample/ for example named configuration files.
|
|
//
|
|
|
|
options {
|
|
directory "{{ map.get('named_directory') }}";
|
|
dump-file "{{ map.get('named_directory') }}/data/cache_dump.db";
|
|
statistics-file "{{ map.get('named_directory') }}/data/named_stats.txt";
|
|
memstatistics-file "{{ map.get('named_directory') }}/data/named_mem_stats.txt";
|
|
|
|
{#- Allow inclusion of arbitrary statements #}
|
|
{%- for statement, value in salt['pillar.get']('bind:config:options', map.get('options', {}))|dictsort -%}
|
|
{%- if value is iterable and value is not string %}
|
|
{{ statement }} {
|
|
{%- for item in value %}
|
|
{{ item }};
|
|
{%- endfor %}
|
|
};
|
|
{%- else %}
|
|
{{ statement }} {{ value }};
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
|
|
/* Path to ISC DLV key */
|
|
bindkeys-file "/etc/named.iscdlv.key";
|
|
|
|
managed-keys-directory "{{ map.get('named_directory') }}/dynamic";
|
|
};
|
|
|
|
zone "." IN {
|
|
type hint;
|
|
file "named.ca";
|
|
};
|
|
|
|
include "/etc/named.rfc1912.zones";
|
|
include "{{ map.local_config }}";
|
|
include "/etc/named.root.key";
|
|
{%- for incl in salt['pillar.get']('bind:config:includes', []) %}
|
|
include "{{ incl }}";
|
|
{% endfor %}
|