summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorMarc Fournier <marc.fournier@camptocamp.com>2011-11-15 13:13:29 +0100
committerMarc Fournier <marc.fournier@camptocamp.com>2011-11-15 13:13:29 +0100
commit61452bec75976590a0293870d410ed0d3c80f843 (patch)
tree34cf56382b6489a3e680cfa9f49398b62ced59cd /manifests/init.pp
parentfa66d16ad547f68655b4eab9672592d63821e8ca (diff)
downloadpuppet-bind-61452bec75976590a0293870d410ed0d3c80f843.tar.gz
puppet-bind-61452bec75976590a0293870d410ed0d3c80f843.tar.bz2
file renaming to be compliant with recommended module structure.
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp56
1 files changed, 54 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 6cc1969..d9af708 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,2 +1,54 @@
-import "classes/*.pp"
-import "definitions/*.pp"
+/*
+
+= Class: bind
+Include this class to install bind9 server on your node.
+
+Requires:
+- module common (git://github.com/camptocamp/puppet-common.git)
+
+Bind documentation:
+http://www.bind9.net/manuals
+
+Limitations:
+This modules is valid for Bind 9.7.1 (squeeze version).
+For 9.7.2, it will be really limited (no view nor ACL support).
+
+
+Example:
+
+node "ns1.domain.ltd" {
+ include bind
+ bind::zone {"domain.ltd":
+ ensure => present,
+ zone_contact => "contact.domain.ltd",
+ zone_ns => $fqdn,
+ zone_serial => "2010110804",
+ zone_ttl => "604800",
+ }
+
+ bind::a {"ns $fqdn":
+ zone => "domain.ltd",
+ owner => "${fqdn}.",
+ host => $ipaddress,
+ }
+
+ bind::a {"mail.domain.ltd":
+ zone => "domain.ltd",
+ owner => "mail",
+ host => "6.6.6.6",
+ }
+
+ bind::mx {"mx1":
+ zone => "domain.ltd",
+ owner => "@",
+ priority => 1,
+ host => "mail.domain.ltd",
+ }
+}
+*/
+class bind {
+ case $operatingsystem {
+ "Debian","Ubuntu": { include bind::debian }
+ default: { fail "Unknown $operatingsystem" }
+ }
+}