diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-20 21:24:54 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-20 21:24:54 -0200 |
commit | 3d9feb7f47151c9b828a5ff2e74d2f0d97ebab01 (patch) | |
tree | df97fe71507fd9eeed3deb08b87f41a503e75bbe /manifests/init.pp | |
parent | 999e4e426996f3169b0a8f647eee8e8ab4ec8c33 (diff) | |
parent | 88a39666e5b0ddf668baf93c111b549628f79704 (diff) | |
download | puppet-bind-3d9feb7f47151c9b828a5ff2e74d2f0d97ebab01.tar.gz puppet-bind-3d9feb7f47151c9b828a5ff2e74d2f0d97ebab01.tar.bz2 |
Merge branch 'master' of https://github.com/camptocamp/puppet-bind
Conflicts:
manifests/definitions/bind-mx.pp
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 55 |
1 files changed, 53 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 6cc1969..ff88737 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,2 +1,53 @@ -import "classes/*.pp" -import "definitions/*.pp" +# = Class: bind +# Include this class to install bind9 server on your node. +# +# 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}" } + } + +} |