]> gitweb.fluxo.info Git - puppet-bind.git/commitdiff
Adds bind::named production
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 18 Jun 2016 17:13:46 +0000 (14:13 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 18 Jun 2016 17:13:46 +0000 (14:13 -0300)
files/named.conf [new file with mode: 0644]
manifests/named.pp [new file with mode: 0644]

diff --git a/files/named.conf b/files/named.conf
new file mode 100644 (file)
index 0000000..86ed0b1
--- /dev/null
@@ -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 (file)
index 0000000..d7fa1b4
--- /dev/null
@@ -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'],
+  }
+}