summaryrefslogtreecommitdiff
path: root/manifests/txt.pp
blob: 92b3ba4079b7bcc06eff12d29fee29ddf1d8c6f4 (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
28
# = 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 (
  $zone,
  $text,
  $ensure = present,
  $owner  = false,
  $ttl    = false
) {

  bind::record {$name:
    ensure      => $ensure,
    zone        => $zone,
    owner       => $owner,
    host        => $text,
    ttl         => $ttl,
    record_type => 'TXT',
  }

}