blob: c99c3f16aefc0fd5134dfd3dd43a64e56ba3e55f (
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']
}
}
|