summaryrefslogtreecommitdiff
path: root/manifests/txt.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/txt.pp
parente9c9acdd15579bcb10ca9509c032819d3f808e53 (diff)
downloadpuppet-bind-d8f231f802e967bdf5c30bbee61fab05a7621dc6.tar.gz
puppet-bind-d8f231f802e967bdf5c30bbee61fab05a7621dc6.tar.bz2
lint + cosmetics
Diffstat (limited to 'manifests/txt.pp')
-rw-r--r--manifests/txt.pp45
1 files changed, 23 insertions, 22 deletions
diff --git a/manifests/txt.pp b/manifests/txt.pp
index 31dd189..92b3ba4 100644
--- a/manifests/txt.pp
+++ b/manifests/txt.pp
@@ -1,27 +1,28 @@
-/*
-
-= Definition: bind::txt
-Creates an IPv4 record.
-
-Arguments:
- *$zone*: Bind::Zone name
- *$owner*: owner of the Resource Record
- *$text*: target of the Resource Record
- *$ttl*: Time to Live for the Resource Record. Optional.
-
-*/
-define bind::txt($ensure=present,
- $zone,
- $owner=false,
- $text,
- $ttl=false) {
+# = Definition: bind::txt
+#
+# Creates an IPv4 record.
+#
+# Arguments:
+# *$zone*: Bind::Zone name
+# *$owner*: owner of the Resource Record
+# *$text*: target of the Resource Record
+# *$ttl*: Time to Live for the Resource Record. Optional.
+#
+define bind::txt (
+ $zone,
+ $text,
+ $ensure = present,
+ $owner = false,
+ $ttl = false
+) {
bind::record {$name:
- ensure => $ensure,
- zone => $zone,
- owner => $owner,
- host => $text,
- ttl => $ttl,
+ ensure => $ensure,
+ zone => $zone,
+ owner => $owner,
+ host => $text,
+ ttl => $ttl,
record_type => 'TXT',
}
+
}