This commit is contained in:
David Schmitt 2008-04-06 17:36:22 +02:00
parent 8891451fef
commit 535bc328f2

View file

@ -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] } }
#}
}