]> gitweb.fluxo.info Git - puppet-common.git/commitdiff
always run concatenate command
authorDavid Schmitt <david@schmitt.edv-bus.at>
Tue, 2 Jun 2009 12:16:38 +0000 (14:16 +0200)
committerDavid Schmitt <david@schmitt.edv-bus.at>
Tue, 2 Jun 2009 12:16:38 +0000 (14:16 +0200)
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.

manifests/defines/concatenated_file.pp

index 3741eeab77cf65768e734534697a38cb2cb0b406..c7e1f21047464cda1d247949febd6a21b7423e2d 100644 (file)
@@ -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
        }
 
 }