thias / puppet-bind

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

Assistance tweaking this package for Ubuntu? #84

Open mcblum opened 6 years ago

mcblum commented 6 years ago

Hey @thias. Thanks for putting this together. It's really great but I'm having a bit of trouble configuring everything for Ubuntu. I've forked it, and if you have a second would you mind pointing me in the right direction of how I can move the files from /var/named to /var/bind and have the configs be written to named.conf.options and named.conf.local? I'll keep messing with it but if you happen to have a second, I'd really appreciate it!

b4ldr commented 6 years ago

This module uses just one config file so don't worry about having things in separate named.options and named.local files. also /var/cache/bind is the ubuntu default for the directory the following should get you what you want.

include ::bind
bind::server::conf {'/etc/bind/named.conf':
  directory => '/var/cache/bind',
  dump_file => '/var/cache/bind/cache_dump.db',
  statistics_file => '/var/cache/bind/named_stats.txt',
  memstatistics_file => '/var/cache/bind/named_mem_stats.txt',
}