Chef 11.6.0 will also use etags or last-modified headers so that if /tmp/foo hasn't been tampered with it won't redownload from the source over and over again. So that simple example should work pretty nicely. In previous versions of Chef, you would have wanted to cache the zip file somewhere and do a not_if { File.exists? } and then when it downloaded trigger an execute to copy it from the cache into place at /tmp/foo, or else to use the checksum attribute on remote_file to avoid it re-downloading. On 8/13/13 7:34 AM, Mike wrote: " type="cite"> |
Archive powered by MHonArc 2.6.16.