Project

General

Profile

Bug #25117

kickstart-default template does not recognise "Red Hat Identity Management" as a realm_type

Added by chris procter over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
Difficulty:
easy
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

I installed a 6.4 snap25 satellite and have hit a bug getting it to join kickstarting machines to my IDM realm.

The relevant part of the "kickstart default" template says:

<% if host_enc['parameters']['realm'] && @host.realm && @host.realm.realm_type == 'FreeIPA' ->
<%= snippet 'freeipa_register' %>
<
end -%>

but there is no option in the Realms creation page to create a "FreeIPA" realm_type, instead you get "Red Hat Identity Management" so the snippet is not called.

Updating the kickstart to:
<% if host_enc['parameters']['realm'] && @host.realm && (@host.realm.realm_type 'FreeIPA' || @host.realm.realm_type 'Red Hat Identity Management') -%>

should be enough to fix the issue


Related issues

Related to Foreman - Bug #25172: kickstart default user_data and finish templates do not recognise "Red Hat Identity Management" as a realm_typeClosed

Associated revisions

Revision efc63a9b (diff)
Added by chris procter over 4 years ago

Fixes #25117 - support both FreeIPA and Red Hat IDM in kickstart_default (#520)

History

#1 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/community-templates/pull/520 added

#2 Updated by chris procter over 4 years ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Ewoud Kohl van Wijngaarden over 4 years ago

  • Target version set to 1.20.0
  • Fixed in Releases 1.18.3, 1.19.1, 1.20.0 added

I cherry picked it into community-templates 1.18-stable and 1.19-stable. We should still sync this into actual releases.

#4 Updated by Ewoud Kohl van Wijngaarden over 4 years ago

  • Related to Bug #25172: kickstart default user_data and finish templates do not recognise "Red Hat Identity Management" as a realm_type added

Also available in: Atom PDF