summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/named.conf11
-rw-r--r--manifests/named.pp13
2 files changed, 24 insertions, 0 deletions
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'],
+ }
+}