summaryrefslogtreecommitdiff
path: root/manifests/definitions/bind-record.pp
blob: 5e0cf6f3205fb67ec99f75c8f9cbcc84bcd252ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
define bind::record($ensure=present,
    $zone,
    $owner,
    $host,
    $record_type,
    $record_class='IN',
    $ttl=false) {

  common::concatfilepart {"${zone}.${record_type}.${name}":
    ensure  => $ensure,
    file    => "/etc/bind/pri/${zone}.conf",
    content => template("bind/default-record.erb"),
  }
}