change has_zone_file back to true for the stub zone type and add logic to prevent the file from being created by puppet
This commit is contained in:
parent
13723a72cf
commit
55922e8974
@ -28,7 +28,7 @@ define bind::zone (
|
||||
'master' => true,
|
||||
'slave' => true,
|
||||
'hint' => true,
|
||||
'stub' => false,
|
||||
'stub' => true,
|
||||
default => false,
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@ define bind::zone (
|
||||
} else {
|
||||
$_source = 'puppet:///modules/bind/db.empty'
|
||||
}
|
||||
|
||||
unless $zone_type == 'stub' {
|
||||
file { "${cachedir}/${name}":
|
||||
ensure => directory,
|
||||
owner => $bind::params::bind_user,
|
||||
@ -79,6 +79,7 @@ define bind::zone (
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
file { "${bind::confdir}/zones/${name}.conf":
|
||||
ensure => present,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user