summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2012-03-20 15:38:17 +0100
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2012-03-20 15:38:17 +0100
commit475c28a91221793a029fb81bfbc66c55fcb427a2 (patch)
treec40f987bb99f017872a9936b2c8bcb6726a3f340
parent61452bec75976590a0293870d410ed0d3c80f843 (diff)
downloadpuppet-bind-475c28a91221793a029fb81bfbc66c55fcb427a2.tar.gz
puppet-bind-475c28a91221793a029fb81bfbc66c55fcb427a2.tar.bz2
Add bind::txt
-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',
+ }
+}