aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2017-09-24 19:27:45 +0100
committerPascal Terjan <pterjan@mageia.org>2017-09-24 19:27:57 +0100
commitc3024d2ec1e76a527d54fa7c391142b65697e06b (patch)
tree61a0a673f183f2334a7f6687cb245e3171fb09de /modules
parent6d189a91bd907e820fc2552f08236e0b2e55249e (diff)
downloadpuppet-c3024d2ec1e76a527d54fa7c391142b65697e06b.tar
puppet-c3024d2ec1e76a527d54fa7c391142b65697e06b.tar.gz
puppet-c3024d2ec1e76a527d54fa7c391142b65697e06b.tar.bz2
puppet-c3024d2ec1e76a527d54fa7c391142b65697e06b.tar.xz
puppet-c3024d2ec1e76a527d54fa7c391142b65697e06b.zip
Fix random breakage of bind
If bind is not started when we create the file, we write into /var/lib/named/var/named/ which then means the script will skip mounting it as the directory is not empty, and even if it mounted it the files would be hidden. If it's running it's bind mounted already so writing to /var/named/ is enough anyway.
Diffstat (limited to 'modules')
-rw-r--r--modules/bind/manifests/zone.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bind/manifests/zone.pp b/modules/bind/manifests/zone.pp
index 09cc64f4..17f2075e 100644
--- a/modules/bind/manifests/zone.pp
+++ b/modules/bind/manifests/zone.pp
@@ -5,7 +5,7 @@ define bind::zone($type, $content = false) {
$zone_content = $content
}
- file { "/var/lib/named/var/named/${type}/${name}.zone":
+ file { "/var/named/${type}/${name}.zone":
content => $zone_content,
require => Package['bind'],
notify => Exec['named_reload']