Closed wbean1 closed 10 years ago
I do not plan to add any new functionality, but I'm happy to merge a pull request with this capability.
Due to the complexity of trying to do all this as an exec, most of this module functionality have been reimplemented in https://github.com/nanliu/puppet-archive via type/provider. The new module will delete the downloaded file if the http status code is not in the 200 range, and can perform checksums post download. I think that will be the better route.
A couple thoughts on some download error handling that could potentially be added to this module...
$http_get = "curl ... || rm -f ${name}"
tries
attribute, in conjunction with curl's-C -
and wget's--continue
to resume broken transfers?we've implemented item 1 since even a failed download will create the file and result in the file not being redownloaded.
I could submit a pull request for either route if interested.