Skip to content

Commit 019e1e4

Browse files
author
Joe Bowman
committed
fix named_directory bug in Debian/Ubuntu by using the map value instead of hardcoding
1 parent 72030c9 commit 019e1e4

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

bind/config.sls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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:

bind/files/arch/named.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// vim:set ts=4 sw=4 et:
22

33
options {
4-
directory "/var/named";
4+
directory "{{ named_directory }}";
55
pid-file "/run/named/named.pid";
66

77
// Uncomment these to enable IPv6 connections support

bind/files/debian/named.conf.options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{%- set key_directory = salt['pillar.get']('bind:lookup:key_directory', key_directory) %}
22

33
options {
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

bind/files/freebsd/named.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
options {
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', []) %}
390390
include "{{ incl }}";
391391
{% endfor %}
392-

bind/files/redhat/named.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99

1010
options {
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";

bind/files/suse/named.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
#

0 commit comments

Comments
 (0)