Add subscription-manager snippet
|Assigned To:||Sam Kottler|
|Target version:||Sprint 20|
|Found in release:||Pull request:|
|Velocity based estimate||-|
The default RHEL kickstart template uses rhnreg_ks in the redhat_register snippet to register the newly provisioned host, however this is now deprecated in favour of subscription-manager.
A new snippet should be added for rhsm support and the templates updated to use it. The snippet should support enabling non-default repos too.
#3 Updated by Dominic Cleal over 3 years ago
Please ensure it quotes activation keys to prevent a repeat of https://bugzilla.redhat.com/show_bug.cgi?id=1051580.
#4 Updated by Dominic Cleal over 3 years ago
Here's a starting point, we need to be able to replace this snippet:
Don't forget, it goes to community-templates, then we'll just resync on the next Foreman release.
#6 Updated by Michael Moll over 3 years ago
I ran into this today and FWIW here my findings (with Dominic's help):
with hosted RHN there's no possibility to use activation keys at the moment, so I use this for now:
subscription-manager register --username <%= @host.params['rhn_username'] %> --password <%= @host.params['rhn_password'] %> --name <%= @host.name %> --auto-attach
and to get the the optional channel:
yum-config-manager --enable rhel-<%= @osver %>-server-optional-rpms
#7 Updated by Sam Kottler over 3 years ago
- Status changed from Assigned to Ready For Testing
#11 Updated by Sam Kottler over 3 years ago
This got finished in sprint 19, but didn't get closed automatically for some reason. There is a final pending patch  that needs to get merged before I close this.