Automatically add AppStream repo next to BaseOS as additional media
Katello automatically adds BaseOS and AppStream as additional media so RHEL8 provisioning works. There is currently an issue with that tracked as #27948 but the feature works with RHEL8.
For Foreman core (normal Installation media provisioning) however, there is no such a feature. This is my attempt to fill the gap - if user adds repo containing /BaseOS/ and it is redhat family with major version 8 or higher, Foreman will add new repository named "AppStream" with the same URL but with BaseOS replaced with AppStream which matches all CentOS mirrors as well as RHEL8 CDN. This enables seamless CentOS8 provisioning with Foreman core, installation media must be set to: http://mirror.centos.org/centos/$major/BaseOS/$arch/kickstart/ in order to work.