summaryrefslogtreecommitdiff
path: root/manifests/ptr.pp
blob: 1904c5d8f6df946e55511cde425bef829420dcb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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',
  }
}