summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-06-08 13:07:03 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-08 13:07:03 +0200
commit1b5393f6c8e5c5707410701cceb3c6fb99fda613 (patch)
treecc731ef0136eda3ba398d611961434bb4b2ceb7a /manifests/init.pp
parentGot content working. (diff)
downloaddns-1b5393f6c8e5c5707410701cceb3c6fb99fda613.tar.gz
dns-1b5393f6c8e5c5707410701cceb3c6fb99fda613.tar.xz
work
Diffstat (limited to '')
-rw-r--r--manifests/init.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index a3e073a..d80cea3 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -104,11 +104,17 @@ class dns (
ensure => file,
}
+ $warn = @(EOF)
+ #
+ # File managed by Puppet. Local changes WILL be overwritter',
+ #
+ | EOF
+
concat { $config_file:
ensure_newline => true,
- warn => '# File managed by Puppet. Local changes WILL be overwritter',
validate_cmd => "${checkconf} %",
notify => Service[$servicename],
+ warn => $warn,
}
concat::fragment { 'named.conf main configuration':