aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bind/manifests/zone.pp
blob: 17f2075eb9d74de3c7226f34bcba739c5e971f4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
define bind::zone($type, $content = false) {
    if ! $content {
        $zone_content = template("bind/zones/${name}.zone")
    } else {
        $zone_content = $content
    }

    file { "/var/named/${type}/${name}.zone":
        content => $zone_content,
        require => Package['bind'],
        notify  => Exec['named_reload']
    }
}