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.
Connecting redmine issue https://projects.theforeman.org/issues/28635 from this bug
Is this still relevant?
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