From 1b5393f6c8e5c5707410701cceb3c6fb99fda613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 8 Jun 2023 13:07:03 +0200 Subject: work --- manifests/init.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'manifests/init.pp') 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': -- cgit v1.2.3