Ah, looks like we've rediscoverd bug #264 [1]. You might also want to read #1564 [2], but I'll save you the time and quote the relevant bits:
> Given that I'm (nearly) positive this is working in the master > branch, I think the "right" approach for now is to just throw a > warning and revert to md5 if someone tries to use something > other than md5 sums when doing remote copies. - Luke In otherwords, looks like you should be using md5 until 0.26.x comes out. .r' [1] http://projects.reductivelabs.com/issues/show/264 [2] http://projects.reductivelabs.com/issues/show/1564 2008/10/29 schickb <[EMAIL PROTECTED]>: > > That is a fairly limited test. Have you tried it with "source => > "puppet:///module/file"? > > -Brad > > On Oct 29, 9:58 am, RijilV <[EMAIL PROTECTED]> wrote: >> 2008/10/28 schickb <[EMAIL PROTECTED]>: >> >> >> >> > Since my other thread (http://groups.google.com/group/puppet-users/ >> > browse_thread/thread/51f014a558b340a4?hl=en) has lots of data and no >> > replies, I wanted to ask the questions directly: Does the "mtime" >> > checksum work correctly for others? Or does it update files >> > unnecessarily? >> >> In my rather limited testing I found this feature to be working just >> fine. Relevant manifest: >> >> file { "/tmp/not_random": >> content => "this file is full", >> checksum => "mtime", >> backup => "false", >> } >> >> Tests: >> >> # rm /tmp/not_random >> # puppetd -t >> notice: Ignoring cache >> info: Caching catalog at /var/lib/puppet/localconfig.yaml >> notice: Starting catalog run >> warning: //Node[default]/File[/tmp/not_random]/checksum: File >> /tmp/not_random does not exist -- cannot checksum >> notice: //Node[default]/File[/tmp/not_random]/checksum: defined >> 'checksum' as '{mtime}Wed Oct 29 09:54:21 -0700 2008' >> notice: //Node[default]/File[/tmp/not_random]/content: created file >> with contents {md5}a8b6d26f96999be9ef469c52325d09af >> notice: Finished catalog run in 0.46 seconds >> >> # puppetd -t >> notice: Ignoring cache >> info: Caching catalog at /var/lib/puppet/localconfig.yaml >> notice: Starting catalog run >> notice: Finished catalog run in 0.46 seconds >> >> # touch /tmp/not_random >> # puppetd -t >> notice: Ignoring cache >> info: Caching catalog at /var/lib/puppet/localconfig.yaml >> notice: Starting catalog run >> notice: //Node[default]/File[/tmp/not_random]/checksum: checksum >> changed '{mtime}Wed Oct 29 09:54:48 -0700 2008' to '{mtime}Wed Oct 29 >> 09:55:40 -0700 2008' >> notice: Finished catalog run in 0.46 seconds >> >> # puppetd -t >> notice: Ignoring cache >> info: Caching catalog at /var/lib/puppet/localconfig.yaml >> notice: Starting catalog run >> notice: Finished catalog run in 0.45 seconds >> >> .r' > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
