summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-18 14:13:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-18 14:13:46 -0300
commit94e32efdbdbcb9a0a8164852667aa7c8fe9f833e (patch)
treee69b0349471801482fffeeee3550d00688f324bf
parent8b5d6b18a3b9c01a2de92befec35a6340835b847 (diff)
downloadpuppet-bind-production.tar.gz
puppet-bind-production.tar.bz2
Adds bind::namedproduction
-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'],
+ }
+}