-
Notifications
You must be signed in to change notification settings - Fork 120
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
Add os product tag based on /etc/os-release #3188
base: main
Are you sure you want to change the base?
Conversation
b997319
to
234c4da
Compare
Currently, content filter based on the product-tags only works for RHEL. The content filter method should also be usable for other OSses, like CentOS, SuSE or even Debian/Ubuntu. With this approach, a [os-name]-[os-version] tag is created based on /etc/os-release. The tag is only generated and added if the feature is activated by setting use_os_release_product=1 in /etc/rhsm/rhsm.conf
234c4da
to
9d9be80
Compare
Just to recap this what was discussed on IRC some days ago. This came as a request to make automatic attaching of products in SCA mode work also OOTB in non-RHEL distributions: The problem happens because non-RHEL distros do not have product certificates in An example is done by the importer of the test data of Candlepin: |
Regarding the product certificate, it does not contain Tags/Brand Name/etc because the product was created by Katello:
This product is managed via katello. so the question is, how to set Tags, Version, Arch, etc. |
Hey @sbernhard In Katello/katello#8983 we started adding I think you could modify arches etc. in the same sort of way. Basically we added the params to the Dynflow action and those get passed into hopefully this gets you started :) |
First of all, thanks for your comment. Would be nice to continue this discussion. The idea would be:
|
Thanks for this PR. I like the idea. 👍 It seems like a simple change, but it could actually have deep impact on our flow. We do lot of things with tags and to be honest I don't understand many of them. We will have to discuss this topic in our team more and then we will let you know the outcome of this discussion. |
Thanks @jirihnidek
Therefore, this addition would make it possible to use OS-specific repos for other than RHEL OS because currently, only RHEL is possible to be a product-tag. |
How can we proceed with this? |
I feel like after custom products' default enablement is changed to disabled (Katello/katello#10502), the need for OS restrictions is eased significantly. But if y'all decide this is feasible in sub-man I'm happy to continue the conversation. |
@sbernhard Hi, still discussing about this with many folks... Would it be useful to get tool for creating product certs with tags? BTW: Tags in product certs are also used for getting release file from CDN. |
We tried to add the functionality to candlepin, but this was rejected: candlepin/candlepin#3794 The overall goal is to filter repositories based on the OS name. Currently this is done by the product tags which candlepin/sub-man are using in their certs. As we can not extend this currently, it would be possible to use this PR to check if certain repos can be used based on the currently running OS. How can we proceed with this PR @jirihnidek / @ptoscano / @jeremylenz ? |
Currently, content filter based on the product-tags only works for RHEL. The content filter method should also be usable for other OSses, like CentOS, SuSE or even Debian/Ubuntu. With this approach, a [os-name]-[os-version] tag is created based on /etc/os-release. The tag is only generated and added if the feature is activated by setting use_os_release_product=1 in /etc/rhsm/rhsm.conf