-
Notifications
You must be signed in to change notification settings - Fork 28
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
Support arbitrary registration URL #610
base: main
Are you sure you want to change the base?
Conversation
Thank you for your contribution, however, I have to note that this registration only concerns the intermediate container used for RPM resolution, and not the final provisioned node(s). What is the problem that we're trying to solve? |
Enable the full process to be able to talk with a SUMA/RMT/SCC Instance. I understand that this container calls By allowing the registration URL just before the download, the downloads can be served by SUMA/RMT/SMT instead. Or at least is my understanding on when each stage is called 😅 |
This is awesome, thanks for the contribution. I'll do a quick test on my own to verify the templating part works correctly. In the meantime, I have a few notes on areas that aren't necessarily obvious that need to be updated before it can land:
|
@fdegir This is an outside contribution, so not on our roadmap, but can you put this on your todo list of things to add to CI? |
Light testing looked good to me. I don't have a local server to test against, but I was able to get the resolution script to show:
|
@@ -12,7 +12,7 @@ set -euo pipefail | |||
# Arch - sets the architecture of the rpm packages to pull |
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.
One more thing @josegomezr, please add mention of the new template variable and a brief description here.
Thanks for the contribution @josegomezr - another thing to mention in the documentation would be that by default we register against SCC/CDN, and that if the URL is omitted, this what we use by default. Thanks! |
Add support for `operatingSystem.packages.sccRegistrationUrl` to allow for registration against an RMT/SMT/SUMA.
Use net/url.Parse function to ensure a valid url is present
8b28958
to
5bf8166
Compare
* `sccRegistrationUrl` - Specifies a registration server like RMT or SUMA, which is used to connect download SUSE's internal RPM repositories. Defaults to `https://scc.suse.com`. | ||
|
||
> **_NOTE:_** When using `sccRegistrationUrl` over `https` it's important that the `eib` recognizes the CA of the `registrationUrl`. | ||
> This is common on RMT setups. See the [RMT docs on configuring clients](https://documentation.suse.com/sles/15-SP6/html/SLES-all/cha-rmt-client.html). |
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.
I must confess I'm not super inspired on this writing part, I'm very open to suggestions 😅
Add support for
operatingSystem.packages.sccRegistrationUrl
to allow for registration against an RMT/SMT/SUMA.Similar to suse-edge/misc#112