Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom template re-generation #13

Merged
merged 2 commits into from
Oct 21, 2023
Merged

add custom template re-generation #13

merged 2 commits into from
Oct 21, 2023

Conversation

itoffshore
Copy link
Owner

@itoffshore itoffshore commented Oct 21, 2023

  • adds -v / --version command line option

  • Custom templates can become stale as standard templates change over time.

  • Adds -r / --regenerate option to rebuild custom templates by:

    • adding a json footer comment to all newly created custom templates with details of the source / destination templates + cloudinit & override used to create the custom template
    • firstly regenerates all base templates that override standard templates
    • afterwards regenerates all custom templates that override base templates
  • Existing custom templates will need to be recreated (so a json footer is written to the template) - to make use of this new functionality to keep custom templates up to date


TODO: incorporate this new functionality into the template update process:

  • update base templates when the standard template it is based on changes
  • update custom templates that override the updated base template

itoffshore and others added 2 commits October 21, 2023 18:41
* adds `-v` / `--version` command line option

---

* Custom templates can become stale as standard templates change
  over time.

* Adds `-r` / `--regenerate` option to rebuild custom templates by:

  - adding a json footer comment to all newly created custom templates
    with details of the source / destination templates + cloudinit &
    override used to create the custom template
  - firstly regenerates all `base` templates that override `standard`
    templates
  - afterwards regenerates all `custom` templates that override `base`
    templates

* Existing custom templates will need to be recreated (so a json footer
  is written to the template) - to make use of this new functionality to
  keep custom templates up to date

---

TODO: incorporate this new functionality into the template update process:

      - update `base` templates when the `standard` template it is
        based on changes
      - update `custom` templates that override the updated `base`
        template
@itoffshore itoffshore changed the title add custom template re-generation (-r / --regeneration) add custom template re-generation Oct 21, 2023
@itoffshore itoffshore merged commit 3a8e157 into main Oct 21, 2023
4 checks passed
@itoffshore itoffshore deleted the rebuild branch October 21, 2023 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant