aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bind/manifests/zone.pp
blob: 24367206437b884271d6abfeec2d0b393290be3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
define bind::zone($type, $content = false) {
    if ! $content {
        $zone_content = template("bind/zones/$name.zone")
    } else {
        $zone_content = $content
    }
    file { "/var/lib/named/var/named/$type/$name.zone":
        content => $zone_content,
        require => Package['bind'],
        notify  => Exec['named_reload']
    }
}