chocolatey-community / chocolatey-cookbook

Chef cookbook to install chocolatey and packages on Windows
Apache License 2.0
108 stars 77 forks source link

Make 7zip download location a configurable option #124

Closed bender-the-greatest closed 6 years ago

bender-the-greatest commented 7 years ago

As it stands, even if you specify an alternate download location for the Chocolatey nupkg, the recipe still tries to download https://chocolatey.org/7za.exe. This causes issues for installing chocolatey on systems with no access to the internet, even if you have the nupkg available on an internal network with your own internal package sources.

It would be desirable to be able to configure the URL of 7za.exe, or even to specify to use the system installed version of 7zip instead of assuming that chocolatey.org is accessible.

bender-the-greatest commented 7 years ago

Started looking into this as I was planning on making a PR for this issue, but found out that there is the chocolateyUseWindowsCompression envvar to bypass the 7zip requirement. Would be nice if this were configurable as a cookbook attribute (looks like it's defined but not in use).

ferventcoder commented 7 years ago

@metalseargolid I believe you can do so but would lean on @mwrock for his knowledge on that.

mwrock commented 7 years ago

yes. I would gladly accept a PR that passes that via an attribute!