summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/txt.pp27
1 files changed, 27 insertions, 0 deletions
diff --git a/manifests/txt.pp b/manifests/txt.pp
new file mode 100644
index 0000000..31dd189
--- /dev/null
+++ b/manifests/txt.pp
@@ -0,0 +1,27 @@
+/*
+
+= 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) {
+
+ bind::record {$name:
+ ensure => $ensure,
+ zone => $zone,
+ owner => $owner,
+ host => $text,
+ ttl => $ttl,
+ record_type => 'TXT',
+ }
+}