]> gitweb.fluxo.info Git - puppet-bind.git/commitdiff
Add bind::txt
authorRaphaël Pinson <raphael.pinson@camptocamp.com>
Tue, 20 Mar 2012 14:38:17 +0000 (15:38 +0100)
committerRaphaël Pinson <raphael.pinson@camptocamp.com>
Tue, 20 Mar 2012 14:38:17 +0000 (15:38 +0100)
manifests/txt.pp [new file with mode: 0644]

diff --git a/manifests/txt.pp b/manifests/txt.pp
new file mode 100644 (file)
index 0000000..31dd189
--- /dev/null
@@ -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',
+  }
+}