diff options
author | intrigeri <intrigeri@boum.org> | 2012-12-30 15:43:06 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2012-12-30 16:06:30 +0100 |
commit | 985ec1fe0aee848b3d45e9f8accf6ff156b3af25 (patch) | |
tree | 77b912f748ee292cde094cfca511cc3e20da8787 /manifests/header_checks_snippet.pp | |
parent | 2c86670a9233ee62d16b16730218994a1fe7eb9b (diff) | |
download | puppet-postfix-985ec1fe0aee848b3d45e9f8accf6ff156b3af25.tar.gz puppet-postfix-985ec1fe0aee848b3d45e9f8accf6ff156b3af25.tar.bz2 |
Use the concat module instead of the concatenated_file defined (Closes: #4074)
Diffstat (limited to 'manifests/header_checks_snippet.pp')
-rw-r--r-- | manifests/header_checks_snippet.pp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/manifests/header_checks_snippet.pp b/manifests/header_checks_snippet.pp index 454d219..6ffdad8 100644 --- a/manifests/header_checks_snippet.pp +++ b/manifests/header_checks_snippet.pp @@ -43,23 +43,20 @@ define postfix::header_checks_snippet ( include postfix::header_checks - $snippetfile = "${postfix::header_checks::postfix_header_checks_snippets_dir}/${name}" - - file { "$snippetfile": + $fragment = "postfix_header_checks_${name}" + + concat::fragment { "$fragment": ensure => "$ensure", - mode => 600, - owner => root, - group => 0, - notify => Exec["concat_${postfix::header_checks::postfix_merged_header_checks}"], + target => '/etc/postfix/header_checks', } if $source { - File["$snippetfile"] { + Concat::Fragment["$fragment"] { source => $source, } } else { - File["$snippetfile"] { + Concat::Fragment["$fragment"] { content => $content, } } |