support direct link to tar for download path
gregorskii opened this issue · comments
Greg commented
The cookbooks LWRP passes in the mirror and builds the tar path itself. Can this cookbook support direct links to a self-hosted copy of the tar, say in S3?
Thanks
Jeff Byrnes commented
It could! Pull requests are welcome 😄
Jeff Byrnes commented
This can already work this way, the download url for the ark
resources that grabs & unpacks the archive looks like this:
"#{new_resource.mirror}/zookeeper-#{new_resource.version}/zookeeper-#{new_resource.version}.tar.gz"
So you simply need to structure the URL to your self-hosted copy such that the file is named zookeeper-#{version}/zookeeper-#{version}.tar.gz
, and set the mirror
value to whatever precedes that.
Closing this out.