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.
# 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
}
}