checkup
This commit is contained in:
parent
8891451fef
commit
535bc328f2
1 changed files with 14 additions and 3 deletions
|
@ -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] } }
|
||||
#}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue