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