summaryrefslogtreecommitdiff
path: root/manifests/classes
diff options
context:
space:
mode:
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>2010-11-11 10:48:02 +0100
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>2010-11-15 14:21:11 +0100
commit9ffcd620373a1b42aeeb519f3d0cdea8ac1d7c22 (patch)
treeeec6505f033ef400013797d0bb934f8f85b3b49b /manifests/classes
parente0f517634bb58ec8e9f396ff489eb8a9efc73ee0 (diff)
downloadpuppet-bind-9ffcd620373a1b42aeeb519f3d0cdea8ac1d7c22.tar.gz
puppet-bind-9ffcd620373a1b42aeeb519f3d0cdea8ac1d7c22.tar.bz2
(bind) added documentation in files.
Diffstat (limited to 'manifests/classes')
-rw-r--r--manifests/classes/bind-base.pp9
-rw-r--r--manifests/classes/bind-debian.pp8
-rw-r--r--manifests/classes/bind.pp59
3 files changed, 76 insertions, 0 deletions
diff --git a/manifests/classes/bind-base.pp b/manifests/classes/bind-base.pp
index b31189e..eb8942e 100644
--- a/manifests/classes/bind-base.pp
+++ b/manifests/classes/bind-base.pp
@@ -1,3 +1,12 @@
+/*
+
+= Class: bind::base
+
+Declares some basic resources.
+You should NOT include this class as is, as it won't work at all!
+Please refer to Class["bind"].
+
+/*
class bind::base {
package {"bind9":
ensure => present,
diff --git a/manifests/classes/bind-debian.pp b/manifests/classes/bind-debian.pp
index f998a80..ad4e477 100644
--- a/manifests/classes/bind-debian.pp
+++ b/manifests/classes/bind-debian.pp
@@ -1,3 +1,11 @@
+/*
+
+= Class: bind::debian
+Special debian class - inherits from bind::base
+
+You should not include this class - please refer to Class["bind"]
+
+*/
class bind::debian inherits bind::base {
Service["bind9"] {
pattern => "/usr/sbin/named",
diff --git a/manifests/classes/bind.pp b/manifests/classes/bind.pp
index dcede05..67bb0e0 100644
--- a/manifests/classes/bind.pp
+++ b/manifests/classes/bind.pp
@@ -1,3 +1,62 @@
+/*
+
+= Class: bind
+Include this class to install bind9 server on your node.
+
+Requires:
+- module common (git://github.com/camptocamp/puppet-common.git)
+
+Example:
+
+node "ns1.domain.ltd" {
+ include bind
+
+= 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": { include bind::debian }