fixed up refresh behaviour, still have to run the concat every time, but requirors are signalled only when the md5 changes
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@126 f03ff2f1-f02d-0410-970d-b9634babeaa1
This commit is contained in:
parent
29d21af47e
commit
550b18c797
1 changed files with 6 additions and 5 deletions
|
@ -19,18 +19,19 @@ define concatenated_file (
|
||||||
{
|
{
|
||||||
file {
|
file {
|
||||||
$dir:
|
$dir:
|
||||||
ensure => directory, checksum => mtime,
|
source => "puppet://$servername/common/empty",
|
||||||
## This doesn't work as expected
|
checksum => mtime,
|
||||||
#recurse => true, purge => true, noop => true,
|
recurse => true, purge => true,
|
||||||
mode => $mode, owner => $owner, group => $group;
|
mode => $mode, owner => $owner, group => $group;
|
||||||
$name:
|
$name:
|
||||||
ensure => present, checksum => md5,
|
ensure => present, checksum => md5,
|
||||||
mode => $mode, owner => $owner, group => $group;
|
mode => $mode, owner => $owner, group => $group;
|
||||||
}
|
}
|
||||||
|
|
||||||
exec { "find ${dir} -maxdepth 1 -type f ! -name '*puppettmp' -print0 | sort -z | xargs -0 cat > ${name}":
|
exec { "/usr/bin/find ${dir} -maxdepth 1 -type f ! -name '*puppettmp' -print0 | sort -z | xargs -0 cat > ${name}":
|
||||||
refreshonly => true,
|
# refreshonly => true,
|
||||||
subscribe => File[$dir],
|
subscribe => File[$dir],
|
||||||
|
before => File[$name],
|
||||||
alias => "concat_${name}",
|
alias => "concat_${name}",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue