From 535bc328f2562793d389b68f6538b7d430b2b791 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Sun, 6 Apr 2008 17:36:22 +0200 Subject: checkup --- manifests/defines/concatenated_file.pp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'manifests') diff --git a/manifests/defines/concatenated_file.pp b/manifests/defines/concatenated_file.pp index e3dbe23..c35449b 100644 --- a/manifests/defines/concatenated_file.pp +++ b/manifests/defines/concatenated_file.pp @@ -57,12 +57,23 @@ define concatenated_file ( } # use >| to force clobbering the target file - exec { "/usr/bin/find ${dir_real} -maxdepth 1 -type f ! -name '*puppettmp' -print0 | sort -z | xargs -0 cat ${additional_cmd} >| ${name}": + exec { "concat_${name}": + command => "/usr/bin/find ${dir_real} -maxdepth 1 -type f ! -name '*puppettmp' -print0 | sort -z | xargs -0 cat ${additional_cmd} >| ${name}", refreshonly => true, - subscribe => File[$dir_real], + subscribe => [ File[$dir_real] ], before => File[$name], - alias => [ "concat_${name}", "concat_${dir_real}"] , + alias => [ "concat_${dir_real}"] , } + #case $header { + #'': {} + #default: { Exec["concat_${name}"] { subscribe +> File[$header] } } + #} + + #case $footer { + #'': {} + #default: { Exec["concat_${name}"] { subscribe +> File[$footer] } } + #} + } -- cgit v1.2.3