From: David Schmitt Date: Tue, 2 Jun 2009 12:16:38 +0000 (+0200) Subject: always run concatenate command X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b7ca00eb83a0bfb21250a898c2a594756c3eb1a6;p=puppet-common.git always run concatenate command Now that this doesn't case unnecessary updates in the system, running the concatenation every time imrpoves robustness in the face of state damages and other non-notifying content changes. Also, tone down the exec to info level to keep the log clean. --- diff --git a/manifests/defines/concatenated_file.pp b/manifests/defines/concatenated_file.pp index 3741eea..c7e1f21 100644 --- a/manifests/defines/concatenated_file.pp +++ b/manifests/defines/concatenated_file.pp @@ -90,10 +90,10 @@ define concatenated_file ( # use >| to force clobbering the target file exec { "concat_${name}": command => "/usr/bin/find ${dir_real} -maxdepth 1 -type f ! -name '*puppettmp' -print0 | sort -z | xargs -0 cat ${additional_cmd} >| ${tmp_file}", - refreshonly => true, subscribe => [ File[$dir_real] ], before => File[$tmp_file], - alias => [ "concat_${dir_real}"] , + alias => [ "concat_${dir_real}"], + loglevel => info } }