summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorMathieu Bornoz <mathieu.bornoz@camptocamp.com>2012-08-02 11:24:52 +0200
committerMathieu Bornoz <mathieu.bornoz@camptocamp.com>2012-08-02 11:24:52 +0200
commitd8f231f802e967bdf5c30bbee61fab05a7621dc6 (patch)
treeb30a9f20b284d5b44ec46140bb48468bfb3674d2 /manifests/init.pp
parente9c9acdd15579bcb10ca9509c032819d3f808e53 (diff)
downloadpuppet-bind-d8f231f802e967bdf5c30bbee61fab05a7621dc6.tar.gz
puppet-bind-d8f231f802e967bdf5c30bbee61fab05a7621dc6.tar.bz2
lint + cosmetics
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp96
1 files changed, 49 insertions, 47 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index f81874a..ff88737 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,51 +1,53 @@
-/*
-
-= 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,
- }
+# = 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 {
- bind::a {"mail.domain.ltd":
- zone => "domain.ltd",
- owner => "mail",
- host => "6.6.6.6",
+ case $::operatingsystem {
+ 'Debian','Ubuntu': { include bind::debian }
+ default : { fail "Unknown ${::operatingsystem}" }
}
- 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" }
- }
}