summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/checksums.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix for conflict between fileserving streams and none-checksumsMarkus Roberts2010-02-171-0/+4
| | | | | | | | | | This was a classic semantic merge conflict; one patch adds a new type of checksum, with a routine to compute it on files; the other adds streams with routines to compute all the existing checksum types on them. They merge cleanly but theresult is incorrect. This patch completes the square by adding a none_stream routine to not-compute a checksum on a stream.
* Fix #3373 - Client side file streamingBrice Figureau2010-02-171-0/+25
| | | | | | | | | | This patch moves file content writing to the content properties and always write (or read) contents by chunks. This reduces drastically puppetd memory consumption when handling large sourced files. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Adding "checksum?" helper method to Checksums moduleLuke Kanies2010-02-171-0/+5
| | | | Signed-off-by: Luke Kanies <luke@reductivelabs.com>
* Fix #2929 - Allow checksum to be "none"Brice Figureau2010-02-171-0/+5
| | | | | | | | | | | | | | | | File checksum is "md5" by default. When managing local files (not sourced or content) it might be desirable to not checksum files, especially when managing deep hierarchies containing many files. This patch allows to write such manifests: file { "/path/to/deep/hierarchy": owner => brice, recurse => true, checksum => none } Then puppet(d) won't checksum those files, just manage their ownership. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fixing #2183 - checksum buffer size is now 4096bLuke Kanies2009-04-241-1/+2
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding a method to Checksums to extract the sum typeLuke Kanies2008-11-051-0/+9
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Quashed commit of my fixes for #1010.Luke Kanies2008-02-211-1/+1
|
* Refactoring the incremental checksum generationLuke Kanies2008-02-141-11/+12
| | | | slightly based on the code in type/file/checksum.rb.
* Enhancing the stand-alone checksums utility moduleLuke Kanies2008-02-141-10/+47
| | | | | | with the rest of the checksums we're likely to use, and adding tests, which I somehow missed when I wrote this file.
* Adding the first pass at modifying file servingLuke Kanies2007-10-171-0/+37
to work with indirection. I've split the fileserver handler into four pieces: Mount (which so far I've just copied wholesale), Configuration (responsible for reading the configuration file and determining what's allowed), Metadata (retrieves information about the files), and Content (retrieves the actual file content). I haven't added the indirection tests yet, and the configuration tests are still all stubs.