thias / puppet-bind

Puppet BIND DNS server module
Other
26 stars 108 forks source link

Ubuntu 16.04 #67

Open cliff-wakefield opened 7 years ago

cliff-wakefield commented 7 years ago

Under Ubuntu 16.04 bind9 package uses /etc/bind for its configuration.

named.conf and all of the zone db files are located there.

So I have wasted hours trying to use my existing puppet code using this module that works fine under RHEL 6 & 7, only to discover puppet was writing out to /etc/named.conf but the ubuntu binaries appear to check for /etc/bind/named.conf.

The module defaults to /var/named, which is fine but is RHEL specific.

bind::server::conf doesn't use params in anyway.

The default values for $dump_file, $statistics_file, $memstatistics_file should all be relative to $directory, because even if you overwrite $directory it still tries to write those files out to the preferred /var/named directory.

mattfahrner commented 7 years ago

Ditto here. Had to override as follows:

directory => '/etc/bind', dump_file => 'cache_dump.db', statistics_file => 'named_stats.txt', memstatistics_file => 'named_mem_stats.txt'

Same problem on Raspberry Pi...

mcblum commented 6 years ago

@mattfahrner did you get this to work? I made the same overrides but for whatever reason, it's not putting the files in the correct directory.