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 {
|
} else {
|
||||||
$_source = 'puppet:///modules/bind/db.empty'
|
$_source = 'puppet:///modules/bind/db.empty'
|
||||||
}
|
}
|
||||||
unless $zone_type == 'stub' {
|
|
||||||
file { "${cachedir}/${name}":
|
file { "${cachedir}/${name}":
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => $bind::params::bind_user,
|
owner => $bind::params::bind_user,
|
||||||
@ -47,6 +46,7 @@ define bind::zone (
|
|||||||
require => Package['bind'],
|
require => Package['bind'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unless $zone_type == 'stub' {
|
||||||
file { "${cachedir}/${name}/${_domain}":
|
file { "${cachedir}/${name}/${_domain}":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => $bind::params::bind_user,
|
owner => $bind::params::bind_user,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user