summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2012-03-26 12:20:39 +0200
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2012-03-26 12:20:39 +0200
commitea7b48f76a9fbb03ee1229c168748e93f5d78984 (patch)
tree808dc99438de2ab031cdfe81df7ce2d5010dde47
parent475c28a91221793a029fb81bfbc66c55fcb427a2 (diff)
downloadpuppet-bind-ea7b48f76a9fbb03ee1229c168748e93f5d78984.tar.gz
puppet-bind-ea7b48f76a9fbb03ee1229c168748e93f5d78984.tar.bz2
Add bind::ptr
-rw-r--r--manifests/ptr.pp27
1 files changed, 27 insertions, 0 deletions
diff --git a/manifests/ptr.pp b/manifests/ptr.pp
new file mode 100644
index 0000000..1904c5d
--- /dev/null
+++ b/manifests/ptr.pp
@@ -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',
+ }
+}