Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
PUP 3.7.3
-
None
-
None
-
3
-
Minor
Description
When creating a file using the mtime checksum, the target file should get the same or a newer checksum than the source file. A subsequent run should not synchronize content again.
echo foo >/tmp/bar
|
bundle exec puppet apply -e 'file { "/tmp/foo": source => "/tmp/bar", checksum => "mtime" }'
|
Notice: Compiled catalog for geras.fritz.box in environment production in 0.20 seconds
|
Notice: /Stage[main]/Main/File[/tmp/foo]/ensure: defined content as '{md5}d3b07384d113edec49eaa6238ad5ff00'
|
Notice: Applied catalog in 0.25 seconds
|
However, another run will cause another sync.
bundle exec puppet apply -e 'file { "/tmp/foo": source => "/tmp/bar", checksum => "mtime" }'
|
Notice: Compiled catalog for geras.fritz.box in environment production in 0.20 seconds
|
Notice: /Stage[main]/Main/File[/tmp/foo]/content: content changed '{mtime}2014-12-03 02:11:12 +0100' to '{md5}d3b07384d113edec49eaa6238ad5ff00'
|
Notice: Applied catalog in 0.26 seconds
|