foreman icon indicating copy to clipboard operation
foreman copied to clipboard

Demonstrate native RHSM registration support

Open ekohl opened this issue 3 years ago • 1 comments

The goal of this PR now is to show an alternative solution to https://community.theforeman.org/t/rfc-systemd-first-boot-service-for-host-provisioning/29892.

This uses the native support in Anaconda to configure RHSM. Having RHSM configured allows using all repositories in %packages, which avoids the need to do everything in %post. That makes the progress bar accurate and also avoids the need to run dnf update in %post. That also speeds up provisioning since you're not installing certain packages twice.

This brings RHEL provisioning much closer to kickstarting Fedora or CentOS.

There are still many TODOs, like setting the correct server for Candlepin and Pulp in case of Katello. It also hasn't been tested.

ekohl avatar Aug 11 '22 16:08 ekohl

Thanks for the info @M4rtinK! We discussed this and @stejskalleos will look at this further when he comes back from PTO.

ekohl avatar Aug 24 '22 13:08 ekohl

https://github.com/theforeman/foreman/pull/9425 was merged.

ekohl avatar Nov 04 '22 12:11 ekohl