File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ bind_options_config:
119119 - mode: {{ salt[' pillar.get' ](' bind:config:mode' , ' 644' ) }}
120120 - context:
121121 key_directory: {{ map .key_directory }}
122+ named_directory: {{ map .named_directory }}
122123 - require:
123124 - pkg: bind
124125 - watch_in:
Original file line number Diff line number Diff line change 11// vim:set ts=4 sw=4 et:
22
33options {
4- directory "/var/named ";
4+ directory "{{ named_directory }} ";
55 pid-file "/run/named/named.pid";
66
77 // Uncomment these to enable IPv6 connections support
Original file line number Diff line number Diff line change 11{%- set key_directory = salt['pillar.get']('bind:lookup:key_directory', key_directory) %}
22
33options {
4- directory "/var/cache/bind ";
4+ directory "{{ named_directory }} ";
55
66 // If there is a firewall between you and nameservers you want
77 // to talk to, you may need to fix the firewall to allow multiple
Original file line number Diff line number Diff line change 1111options {
1212 // All file and path names are relative to the chroot directory,
1313 // if any, and should be fully qualified.
14- directory "/usr/local/etc/namedb/working ";
14+ directory "{{ named_directory }} ";
1515 pid-file "/var/run/named/pid";
1616 dump-file "/var/dump/named_dump.db";
1717 statistics-file "/var/stats/named.stats";
@@ -389,4 +389,3 @@ key "{{ key }}" {
389389{%- for incl in salt['pillar.get']('bind:config:includes', []) %}
390390include "{{ incl }}";
391391{% endfor %}
392-
Original file line number Diff line number Diff line change 88//
99
1010options {
11- directory "/var/named ";
11+ directory "{{ named_directory }} ";
1212 dump-file "/var/named/data/cache_dump.db";
1313 statistics-file "/var/named/data/named_stats.txt";
1414 memstatistics-file "/var/named/data/named_mem_stats.txt";
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ options {
1818
1919 # The directory statement defines the name server's working directory
2020
21- directory "/var/lib/named ";
21+ directory "{{ named_directory }} ";
2222
2323 # enable DNSSEC validation
2424 #
You can’t perform that action at this time.
0 commit comments