How to ensure the file transferred is identical to the source?
If I use the "FILE" resource to stage a file from the puppet master to an agent node, does Puppet ensure that the file is transferred successfully? I noticed that puppet's report that the file checksum is changed to a new checksum value if it is replacing the existing file or it is a brand new file. I read it somewhere that puppet will transferred the file to a /tmp directory and replace the destination file if the two checksum values don't match. But does Puppet performs a checksum verification between the source and tmp files?
Essentially, I just want to see if we need to verify the file is actually transferred without any issue. And if the transferred wasn't successful, I would love to get an error from Puppet to let the user know that there was an issue transferring the file.