I wonder if there's a way
to make it easier for the checksum check to happen? Like have an option
to store the checksum as a node attribute for subsequent runs if you
know the download is static vs dynamic. For example, a ruby tarball vs
an app deployment war. That would at least prevent Chef from
downloading the file every time to verify that checksums are indeed the
same. Of course, that's no help if someone deletes the downloaded artifact. I tried setting a flag in a couple different ways at one point to work with the idea that first level help desk/ops whatever will go through and delete everything they can find when they get disk full notifications. Unfortunately my implementation was flawed and it just left people confused as to why re-downloading didn't trigger when there were problems. This is why I also like a "creates" or "not_if File.exists?" or "create_if_missing." It prevents chef run slowdowns when dealing with unpackaged files. For the record, I also strongly prefer packages and repos for static software, but for those caught up in a less than optimal system, sometimes it can't be an immediate reality. Even then I prefer to take the time and create a package and put it wherever I store static software. Artifactory has an sha256 checksum plugin that you can use to programmatically retrieve checksums to avoid downloading. I wonder if we can get something like that for other places people are dumping tarballs, like Nexus and Artifactory? Sean OMeara wrote: " type="cite"> |
Archive powered by MHonArc 2.6.16.