blob: e44bcab4d816eab0fddde68d6d56d06f017bde50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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}":
ensure => directory
}
file { "/var/lib/named/var/named/${type}/${name}.zone":
content => $zone_content,
require => Package['bind'],
notify => Exec['named_reload']
}
}
|