summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorDavid Schmitt <david@schmitt.edv-bus.at>2008-04-06 17:36:22 +0200
committerDavid Schmitt <david@schmitt.edv-bus.at>2008-04-06 17:36:22 +0200
commit535bc328f2562793d389b68f6538b7d430b2b791 (patch)
tree7de7c0e884c3fad50c762be29299533f06c9f323 /manifests
parent8891451fef0471fb2557db218d0d85f5082afd74 (diff)
checkup
Diffstat (limited to 'manifests')
-rw-r--r--manifests/defines/concatenated_file.pp17
1 files changed, 14 insertions, 3 deletions
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] } }
+ #}
+
}