Unable to edit localboot templates
|Assigned To:||Ondřej Pražák|
|Target version:||Team Marek Iteration 17|
|Found in release:||Pull request:||https://github.com/theforeman/foreman/pull/4570|
|Velocity based estimate||-|
Our recent change in template locking caused that users are no longer able to edit "default local boot" templates as this name is hardcoded in app/models/concerns/orchestration/tftp.rb. We need to make a configuration option for that so user can change this, since kind is different for each individual template type, the default value would need to be something like "%KIND% default local boot".
Additionally we can make a small change to attempt to read host variable called "localboot_template" and if set, let's use that. This will help to workaround issues with local booting, some hardware or VMs do not boot via LOCALBOOT option and need to use COM32 chainloader (see #6725) and this small change will allow to change this behavior per host.
I will also make a change in community-templates so some comment help text is available for users.
This is a 1.15 backport candidate, this is a high priority for provisioning.
#3 Updated by Marek Hulán 10 months ago
A simple workaround is to unlock the template but I agree we should fix it properly. I think the template selection should be in settings so it's consistent with how we allow to select default PXE template (#17228). The override through params would be nice since Settings is global and can't be scoped per organizations.