Feature #3103
closedRead only provisioning/config templates for plugins
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.
Updated by Dominic Cleal over 11 years ago
- Related to Feature #1646: Add feature to clone provisioning templates added
Updated by Dominic Cleal about 11 years ago
- Related to Bug #2792: If you delete "PXE Localboot Default" cancel build fails added
Updated by Dominic Cleal about 11 years ago
- Blocks Feature #3529: Add bootdisk support to Foreman added
Updated by Stephen Benjamin over 10 years ago
- Status changed from New to Ready For Testing
- Assignee set to Stephen Benjamin
Updated by Anonymous over 10 years ago
- Target version changed from 1.8.1 to 1.8.0
Updated by Stephen Benjamin over 10 years ago
- Related to Tracker #6631: Provisioning Template Improvements added
Updated by Daniel Lobato Garcia over 10 years ago
- Status changed from Ready For Testing to Closed
- Pull request https://github.com/theforeman/foreman/pull/1559 added
Updated by Dominic Cleal over 10 years ago
- Translation missing: en.field_release set to 10
Updated by Dominic Cleal over 10 years ago
- Related to Bug #6717: Template locked/unlock message cannot be translated added
Updated by Stephen Benjamin over 10 years ago
- Related to Feature #2297: Ability for admins to lock certain templates, hostgroups, and disk layouts from editing added
Updated by Dominic Cleal over 10 years ago
- Related to Bug #6881: Config Templates model doesn't correctly check that changes are being made in rake added
Updated by Dominic Cleal over 10 years ago
- Related to Bug #7061: UI doesn't show browse/upload option to upload a template file added
Updated by Dominic Cleal about 10 years ago
- Related to Bug #7563: Hammer cannot associate a locked provisioning template to an Operating System, unless its cloned. But the Web UI can added