move the check for the stub zone type to ensure the cachedir is created
This commit is contained in:
parent
55922e8974
commit
22caf612ba
@ -38,7 +38,6 @@ define bind::zone (
|
||||
} else {
|
||||
$_source = 'puppet:///modules/bind/db.empty'
|
||||
}
|
||||
unless $zone_type == 'stub' {
|
||||
file { "${cachedir}/${name}":
|
||||
ensure => directory,
|
||||
owner => $bind::params::bind_user,
|
||||
@ -47,6 +46,7 @@ define bind::zone (
|
||||
require => Package['bind'],
|
||||
}
|
||||
|
||||
unless $zone_type == 'stub' {
|
||||
file { "${cachedir}/${name}/${_domain}":
|
||||
ensure => present,
|
||||
owner => $bind::params::bind_user,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user