Project

General

Profile

Actions

Feature #28896

closed

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 about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
TFTP
Target version:
-
Difficulty:
Triaged:
No
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.

Actions #1

Updated by The Foreman Bot about 4 years ago

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

Updated by The Foreman Bot about 4 years ago

  • Fixed in Releases 2.1.0 added
Actions #3

Updated by Anonymous about 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF