Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1788211

Summary: [RFE] As a user I need the katello kickstart template to use rhsm ks directive
Product: Red Hat Satellite Reporter: Partha Aji <paji>
Component: Provisioning TemplatesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED COMPLETED QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: jcastran, lstejska, mhulan, rlavi, sganar, sokeeffe
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-30 11:12:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Partha Aji 2020-01-06 17:40:49 UTC
The anaconda kickstart for RHEL 8.2 and above includes a "rhsm" kickstart directive which one can use to register a provisioned host to a foreman instance.
The following tasks need to be accomplished for this

* Ensure this runs for RHEL 8.2 and above.
* Add a %pre section for embedding the katello-ca-certificate and add it to /etc/pki/ca-trust/source/anchors/katello-ca-cert.pem or /etc/rhsm/ca/katello-ca-cert.pem (we may need to add it in both places and run update)
* Add the new rhsm command to replace subscription-manager register template
* Add potential post script to update subman settings for package profile transaction (check the custom settings from https://github.com/theforeman/puppet-certs/blob/master/templates/rhsm-katello-reconfigure.erb)
* Add potential post script to make katello-ca cert to the consumers cert store
* Verify that < 8.2 are still on the old subman register mechanism.

Comment 3 Partha Aji 2020-01-06 17:42:06 UTC
Connecting redmine issue https://projects.theforeman.org/issues/28635 from this bug

Comment 4 Ron Lavi 2021-11-03 13:19:31 UTC
Is this still relevant?

Comment 6 Leos Stejskal 2023-05-30 11:12:01 UTC
The rhsm command has been implemented [0], for the suggested features I suggest creating a new BZ.
Since there were no responses for more than a year I'm closing the BZ as done.

[0] https://github.com/theforeman/foreman/pull/9399