]> gitweb.fluxo.info Git - puppet-bind.git/commitdiff
Add bind::ptr
authorRaphaël Pinson <raphael.pinson@camptocamp.com>
Mon, 26 Mar 2012 10:20:39 +0000 (12:20 +0200)
committerRaphaël Pinson <raphael.pinson@camptocamp.com>
Mon, 26 Mar 2012 10:20:39 +0000 (12:20 +0200)
manifests/ptr.pp [new file with mode: 0644]

diff --git a/manifests/ptr.pp b/manifests/ptr.pp
new file mode 100644 (file)
index 0000000..1904c5d
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+
+= Definition: bind::ptr
+Creates a PTR record.
+
+Arguments:
+ *$zone*:  Bind::Zone name
+ *$owner*: number of the Resource Record
+ *$host*:  target of the Resource Record
+ *$ttl*:   Time to Live for the Resource Record. Optional.
+
+*/
+define bind::ptr($ensure=present,
+    $zone,
+    $owner=false,
+    $host,
+    $ttl=false) {
+
+  bind::record {$name:
+    ensure => $ensure,
+    zone   => $zone,
+    owner  => $owner,
+    host   => $host,
+    ttl    => $ttl,
+    record_type => 'PTR',
+  }
+}