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/provision/kickstart_default.erb
use_ntp = host_param_true?('use-ntp', (is_fedora && os_major < 16) || (rhel_compatible && os_major <= 6))
iface = @host.provision_interface
appstream_present = false
use_rhsm = (@host.operatingsystem.name == 'RedHat' || @host.operatingsystem.name == 'RHEL') && os_major >= 8
-%>
# This kickstart file was rendered from the Foreman provisioning template "<%= @template_name %>".
# for <%= @host %> running <%= @host.operatingsystem.name %> <%= os_major %> <%= @arch %>
......
<% else -%>
<%= @host.diskLayout %>
<% end -%>
<%= snippet('kickstart_rhsm') if rhel_compatible && os_major >= 9 -%>
<%= snippet('kickstart_rhsm') if use_rhsm -%>
<% if host_param_true?('use_graphical_installer') -%>
graphical
......
<%= snippet 'epel' -%>
<% end -%>
<%= snippet 'redhat_register' if rhel_compatible && os_major < 9 -%>
<%= snippet 'redhat_register' if rhel_compatible && !use_rhsm -%>
<% if host_enc['parameters']['realm'] && @host.realm && (@host.realm.realm_type == 'FreeIPA' || @host.realm.realm_type == 'Red Hat Identity Management') -%>
<%= snippet 'freeipa_register' %>

Also available in: Unified diff