On 08-12-10 11:19, Leonko wrote:> Hello,
> Anybody know how I can make checking file for verify for size/md5sum
> and if it not equal my value rewrite it from server.
> There may vriant than simple: file { /my/file: ensure => present,
> checksum => true,source => "puppet:///files/file"}
> ?
Isn''t that what Puppet does by default, compare the checksum of the
file
on the client to the one on the server, and if they differ, transfer the file?
From http://docs.puppetlabs.com/references/latest/type.html#file:
checksum
The default checksum parameter, if checksums are enabled, is md5. Valid
values are md5, md5lite, timestamp, mtime, time, none.
source
Copy a file over the current file. Uses checksum to determine when a file
should be copied
Regards,
Martijn.
--
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.