move the check for the stub zone type to ensure the cachedir is created

This commit is contained in:
Trevor Smith 2015-03-19 18:05:17 -04:00
parent 55922e8974
commit 22caf612ba

View File

@ -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,