Project

General

Profile

« Previous | Next » 

Revision bf03a259

Added by Pat Riehecky about 1 month ago

Fixes #36525 - kickstart's RHSM line only works on RHEL hosts

View differences:

app/views/unattended/provisioning_templates/snippet/subscription_manager_setup.erb
The snippet is included in the "global_registration" template and in the "redhat_register" snippet.
The latter ensures host registration during the provisioning process.
-%>
# Select package manager for the OS (sets the $PKG_MANAGER* variables)
if [ -z "$PKG_MANAGER" ]; then
<%= snippet 'pkg_manager' -%>
<%= indent(2) { snippet 'pkg_manager' } -%>
fi
# Define the path to rhsm.conf
......
rhsm_baseurl = "https://cdn.redhat.com"
end
end
%>
-%>
# Configure subscription-manager
test -f $RHSM_CFG.bak || cp $RHSM_CFG $RHSM_CFG.bak

Also available in: Unified diff