Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation archive URL should be configurable #342

Closed
sonnysideup opened this issue Aug 26, 2016 · 4 comments
Closed

Installation archive URL should be configurable #342

sonnysideup opened this issue Aug 26, 2016 · 4 comments

Comments

@sonnysideup
Copy link

The archive URL is hardcoded to the value "https://releases.hashicorp.com/consul/%{version}/%{basename}" inside the default_archive_url class method defined by both the binary and webui installation resources.

Doesn't it make sense to move the base URL and checksums into attribute values so that cookbook consumers can cache copies of these packages where they see fit (e.g. S3, on-prem NAS, etc...)?

@stanchan
Copy link

stanchan commented Sep 8, 2016

I believe that this can be overridden by an inversion option. Not sure how it is being passed to the resource. Can anyone provide a sample of this?

@johnbellone
Copy link
Contributor

default['consul']['options']['archive_url'] = 'https://hashicorp.mirror.corporate.com/consul/%{version}/%{basename}'

@sonnysideup
Copy link
Author

thank you.

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants