From 9ffcd620373a1b42aeeb519f3d0cdea8ac1d7c22 Mon Sep 17 00:00:00 2001 From: Cédric Jeanneret Date: Thu, 11 Nov 2010 10:48:02 +0100 Subject: (bind) added documentation in files. --- manifests/classes/bind.pp | 59 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) (limited to 'manifests/classes/bind.pp') 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 } -- cgit v1.2.3