evertrue / zookeeper-cookbook

Chef cookbook for installing and managing Zookeeper.
https://supermarket.chef.io/cookbooks/zookeeper
Apache License 2.0
81 stars 117 forks source link

support direct link to tar for download path #204

Closed gregorskii closed 5 years ago

gregorskii commented 7 years ago

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

jeffbyrnes commented 7 years ago

It could! Pull requests are welcome 😄

jeffbyrnes commented 5 years ago

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.