From 94e32efdbdbcb9a0a8164852667aa7c8fe9f833e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 18 Jun 2016 14:13:46 -0300 Subject: Adds bind::named --- files/named.conf | 11 +++++++++++ manifests/named.pp | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 files/named.conf create mode 100644 manifests/named.pp diff --git a/files/named.conf b/files/named.conf new file mode 100644 index 0000000..86ed0b1 --- /dev/null +++ b/files/named.conf @@ -0,0 +1,11 @@ +// This is the primary configuration file for the BIND DNS server named. +// +// Please read /usr/share/doc/bind9/README.Debian.gz for information on the +// structure of BIND configuration files in Debian, *BEFORE* you customize +// this configuration file. +// +// If you are just adding zones, please do that in /etc/bind/named.conf.local + +include "/etc/bind/named.conf.options"; +include "/etc/bind/named.conf.local"; +#include "/etc/bind/named.conf.default-zones"; diff --git a/manifests/named.pp b/manifests/named.pp new file mode 100644 index 0000000..d7fa1b4 --- /dev/null +++ b/manifests/named.pp @@ -0,0 +1,13 @@ +class bind::named { + # This is needed so we can comment out the inclusion of + # /etc/bind/named.conf.default-zones + file { '/etc/bind/named.conf': + ensure => present, + owner => root, + group => root, + mode => 0644, + source => [ 'puppet:///modules/site_bind/named.conf', + 'puppet:///modules/bind/named.conf' ] + notify => Service['bind9'], + } +} -- cgit v1.2.3