Haitao Jiang
2011-Jul-11 22:23 UTC
[Puppet Users] How does checksum=>mtime work or does it really work?
Does checksum => mtime really work? I have a file that was checksum by md5 and I want to change to checksum => mtime, but Puppet gave me following error, which was really confusing: ------------------------------ Jul 11 15:00:55 vm1 puppet-agent[6820]: (/Stage[main]/Emb/File[/opt/jetty/contexts/emb-context.xml]/content) change from {mtime}Thu Jul 07 10:45:31 -0700 2011 to {md5}a0c859289703439db2a31e8d9d2d2cf6 failed: Could not rename temporary file /opt/jetty/contexts/emb-context.xml.puppettmp_4976 to /opt/jetty/contexts/emb-context.xml: File written to disk did not match checksum; discarding changes ({mtime} vs {mtime}Mon Jul 11 15:00:55 -0700 2011) at /etc/puppet/modules/emb/manifests/init.pp:78 at /etc/puppet/modules/emb/manifests/init.pp:78 ------------------------------- The message was really confusing since it reported that checksum did not match, which should be the case, since Puppet was using the current time to compare....I am really confused about what Puppet was trying to do in this case (checksum => mtime). Could anyone care to help a newcomer please? Any help would be really appreciated, Haitao -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.