Feature #3842

Add subscription-manager snippet

Added by Dominic Cleal over 4 years ago. Updated 8 days ago.

Status:Closed
Priority:Normal
Assignee:Sam Kottler
Category:Templates
Target version:1.5.0
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link: Found in Releases:
Pull request:

Description

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.

(https://bugzilla.redhat.com/show_bug.cgi?id=1039910)

Associated revisions

Revision 15666c86
Added by Sam Kottler over 4 years ago

Fixes #3842: add support for registering with RHSM

History

#1 Updated by Dominic Cleal over 4 years ago

  • Target version set to 1.9.2

#2 Updated by Sam Kottler over 4 years ago

  • Assignee set to Sam Kottler

#3 Updated by Dominic Cleal over 4 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 4 years ago

Here's a starting point, we need to be able to replace this snippet:
https://github.com/Katello/foreman-katello-engine/blob/master/app/views/unattended/snippets/_subscription_manager_registration.erb#L7

Don't forget, it goes to community-templates, then we'll just resync on the next Foreman release.

#5 Updated by Dominic Cleal over 4 years ago

  • Status changed from New to Assigned

#6 Updated by Michael Moll over 4 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 4 years ago

  • Status changed from Assigned to Ready For Testing

#8 Updated by Dmitri Dolguikh over 4 years ago

  • Target version deleted (1.9.2)
  • Legacy Backlogs Release (now unused) set to 6

#9 Updated by Dmitri Dolguikh over 4 years ago

  • Target version set to 1.9.2

#10 Updated by Dmitri Dolguikh over 4 years ago

  • Target version changed from 1.9.2 to 1.9.1

#11 Updated by Sam Kottler over 4 years ago

This got finished in sprint 19, but didn't get closed automatically for some reason. There is a final pending patch [1] that needs to get merged before I close this.

1. https://github.com/theforeman/community-templates/pull/54

#12 Updated by Dominic Cleal over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
  • Legacy Backlogs Release (now unused) set to 4

Also available in: Atom PDF