Project

General

Profile

Actions

Feature #3103

closed

Read only provisioning/config templates for plugins

Added by Dominic Cleal over 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Templates
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

As a plugin author, I'd like to be able to set certain provisioning templates to be read only, so I can supply originals and updates in my DB migrations and be sure that I won't lose a user's changes when they upgrade.

In the bootdisk plugin I do this by patching the config template model:
https://github.com/theforeman/foreman_bootdisk/blob/master/app/models/concerns/bootdisk/config_template_ext.rb

(this could probably be tidied and submitted to core)

I then supply the templates in DB migrations, including updates, then ask the user to copy the contents to a new template (#1646 would make this a lot easier) and to change a setting pointing to their customised template. If they then upgrade the plugin, the user can then merge the two by hand or switch the setting back to the one I supply.


Related issues 9 (3 open6 closed)

Related to Foreman - Feature #1646: Add feature to clone provisioning templatesClosedStephen Benjamin05/22/2012Actions
Related to Foreman - Bug #2792: If you delete "PXE Localboot Default" cancel build failsNew07/15/2013Actions
Related to Foreman - Tracker #6631: Provisioning Template ImprovementsNew07/16/2014

Actions
Related to Foreman - Bug #6717: Template locked/unlock message cannot be translatedClosedDominic Cleal07/22/2014Actions
Related to Foreman - Feature #2297: Ability for admins to lock certain templates, hostgroups, and disk layouts from editingResolved03/10/2013Actions
Related to Foreman - Bug #6881: Config Templates model doesn't correctly check that changes are being made in rakeClosedStephen Benjamin08/01/2014Actions
Related to Foreman - Bug #7061: UI doesn't show browse/upload option to upload a template fileClosedStephen Benjamin08/13/2014Actions
Related to Foreman - Bug #7563: Hammer cannot associate a locked provisioning template to an Operating System, unless its cloned. But the Web UI canResolved09/22/2014Actions
Blocks Foreman - Feature #3529: Add bootdisk support to ForemanNew10/28/2013Actions
Actions

Also available in: Atom PDF