Project

General

Profile

Actions

Feature #19115

open

Add setting to define which PXE loaders are enabled

Added by Dominic Schlegel about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

If I deleted the "PXEGrub default local boot" template and now want to cancel a pending build I get the following error message:

Error: Failed to cancel pending build for xxxxxx with the following errors: Unable to render 'PXEGrub default local boot' template: ERF42-4689 [Foreman::Exception]: Template 'PXEGrub default local boot' was not found

Given the fact that I did not assign any PXEGrub template to the OS of this particular host this is kind of unexpected at the first sight.
After some analysis it turned out that obviously foreman needs to create local boot files for all boot loaders as you cant assign a specific one to a host.

now my suggestion is to create a global foreman setting that defines which boot loaders are being used in the environment foreman is in. this would allow at least 2 things:

  1. only show the enabled pxe boot loaders in the drop down under "new host > operating system > pxe loader"
  2. only render the local boot templates for enabled pxe boot loaders
  3. maybe narrow down boot loader related tasks to only enabled once in other places I haven’t seen yet.
Actions

Also available in: Atom PDF