-
Notifications
You must be signed in to change notification settings - Fork 423
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
Make it possible to override base package URL location; switch default to GitHub #458
Make it possible to override base package URL location; switch default to GitHub #458
Conversation
@michaelklishin All tests are passed except lint test. But it seems not a part of my PR. Please check it. |
This looks differently from what was originally suggested. @jjasghar how are such attribute initialization issues typically resolved in modern Chef? This approach seems pretty hacky to me. |
@michaelklishin I tried |
There was already a back-and-forth on this issue back in 3.x. There was a change merged into 3.0.4 which moved URL string interpolation from from the attributes file into the recipe. However, the way it was done broke the ability to override package URL and use a local mirror. Then later in 3.12.0 that behaviour was reverted and URL string interpolation was moved back into the attributes file which causes the behaviour that @Wing924 is trying to fix. I believe the best approach is to do URL string interpolation in a recipe, while still allowing that to be overridden by an attribute if defined. It would look something like this: attributes/default.rb:
recipes/default.rb
|
@michaelklishin |
@yardinicwaller thanks for the historical perspective and the suggestion. @Wing924 I'd need to investigate CI failures but let's change default URL to point to GitHub while we are at it. Thank you. |
recipes/default.rb
Outdated
version = node['rabbitmq']['version'] | ||
|
||
default_deb_package_name = "rabbitmq-server_#{version}-1_all.deb" | ||
default_deb_package_url = "https://www.rabbitmq.com/releases/rabbitmq-server/v#{version}/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good opportunity to switch this URL away fro mrabbitmq.com/releases
, say, to GitHub releases. GitHub offers better availability, a CDN and there are not plans to drop it as an artifact distribution mechanism, unlike rabbitmq.com/releases
.
CI failures should be addressed in master. @Wing924 please rebase/merge in master. |
CI in master is green again. |
@Wing924 there is a CI failure that looks genuine:
The correct URL is https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_12/rabbitmq-server_3.6.12-1_all.deb. Bintray URLs should require no substitution: https://dl.bintray.com/rabbitmq/rabbitmq-server-deb/rabbitmq-server_3.6.12-1_all.deb. |
OK, looks like afcc286 addresses the above comment. |
Fixes #457, addresses RabbitMQ core team request to switch to Bintray/GitHub/Package Cloud from rabbitmq.com.