From: Raphaƫl Pinson Date: Mon, 26 Mar 2012 10:20:39 +0000 (+0200) Subject: Add bind::ptr X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ea7b48f76a9fbb03ee1229c168748e93f5d78984;p=puppet-bind.git Add bind::ptr --- 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', + } +}