]> gitweb.fluxo.info Git - puppet-common.git/commitdiff
create a stable result by sorting filenames
authordavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>
Mon, 25 Jun 2007 14:03:28 +0000 (14:03 +0000)
committerdavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>
Mon, 25 Jun 2007 14:03:28 +0000 (14:03 +0000)
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@63 f03ff2f1-f02d-0410-970d-b9634babeaa1

manifests/defines/concatenated_file.pp

index f5e5eef0520df357f341b1f417850c3f45158605..1cfa4fb770d9e4744d93eb5cf6ea5311944215be 100644 (file)
@@ -18,7 +18,7 @@ define concatenated_file ( $dir, $mode = 0644, $owner = root, $group = root ) {
                        mode => $mode, owner => $owner, group => $group;
        }
 
-       exec { "find ${dir} -maxdepth 1 -type f ! -name '*puppettmp' -print0 | xargs -0 cat > ${name}":
+       exec { "find ${dir} -maxdepth 1 -type f ! -name '*puppettmp' -print0 | sort -z | xargs -0 cat > ${name}":
                refreshonly => true,
                subscribe => File[$dir],
        }