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
-~----------~----~----~----~------~----~------~--~---

Reply via email to