Feature #32715
Add the ability to add custom steps to the Default Finish template at early and late stages
Description
Like the "Kickstart default" provisioning template with its custom pre/packages/post snippets, I'd like to be able to add custom early/late steps do Finish templates. This is valuable when using image-based provisioning if one wants to e.g. install custom packages to the provisioned host before considering provisioning complete or add entries to the host's /etc/hosts file before the bulk of the Finish template completes.
The way I propose this be implemented is with the same approach used in "Kickstart default": snippet_if_exists(template_name + " custom early") as one of the first steps in the template and snippet_if_exists(template_name + " custom late") as one of the last steps.
I'll be sending a PR for this shortly.
Associated revisions
History
#1
Updated by The Foreman Bot almost 2 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8573 added
#2
Updated by The Foreman Bot almost 2 years ago
- Fixed in Releases 3.0.0 added
#3
Updated by Anonymous almost 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|dc4fbcae0f0a7922b7cc378b49b13edd1220da44.
#4
Updated by The Foreman Bot over 1 year ago
- Pull request https://github.com/theforeman/foreman/pull/8633 added
#5
Updated by Tomer Brisker over 1 year ago
- Fixed in Releases 2.5.2 added
Fixes #32715 - add custom snippets to finish template
Co-authored-by: Lukáš Zapletal <lukas@zapletalovi.com>
Co-authored-by: Ondřej Ezr <ezrik12@gmail.com>