About | FAQ | Help
Ask Your Question

Revision history [back]

when its doing a copy then puppet just ensures exit code is 0 - i.e. successful.

I guess there may be an edge case where operating system says copy ok - then box crashes and copy was in filesystem cache and not flushed to disk .. however this would be rare .. also I think on next puppet run file would be copied over.

If uber critical you could do an md5 check on file - e.g.:

file {'/dir/filename':
            owner      => 'fred',
            group       => 'blah',
            checksum => 1234,
            audit        => [owner,group,checksum]