Project

General

Profile

Feature #28896

To be able to see the name of the provisioning template being used to build a host from the host itself

Added by Leos Stejskal 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
TFTP
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1697476

1. Feature Description:

After building a host from the satellite server, a rendered copy of the kickstart template will be saved in the host by the name "/root/original-ks.cfg".

Usually, the kickstart template of Satellite 6 doesn't have the required variable defined on the same to print the name of the template itself while it's being rendered against a host.

Due to the same, the file "/root/original-ks.cfg" won't also have the name of the kickstart template that was used for building the host.

This can be easily achieved by adding this segment of the code at the top of the kickstart template.

  1. Template Label: = <%= @template_name %>

2. Why does one need such a feature?

Usually, if someone using the Kickstart Default provisioning template, then it's not required but most people will clone this template and create some different model of templates to build different sets of host as per their application need.

If the above feature will be included, then one just need to login to the host which got build and they just can get the name of the template from the file "/root/original-ks.cfg" itself without any complications.

3. How customer can test and confirm the functionality ?

As a workaround to the Customer's query, It's already been tested and works just as explained.

Associated revisions

Revision 9db34d18 (diff)
Added by Leos Stejskal 6 months ago

Fixes #28896 Add template name to kickstart provision templates

History

#1 Updated by The Foreman Bot 6 months ago

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

#2 Updated by The Foreman Bot 6 months ago

  • Fixed in Releases 2.1.0 added

#3 Updated by Anonymous 6 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF