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

Templated duply scripts #25

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

goetzk
Copy link

@goetzk goetzk commented Sep 21, 2023

Templated pre and post run scripts

Allows one to configure 'tpre' and 'tpost' values which allow for dynamic script creation.
No templates are provided since they're likely to be closely tied to the related inventory.

I've lightly tested this to confirm it works with templates, is properly optional, and those sorts of things.

I'm not sure I got the logic for "remove obsolete pre scripts" (or post scripts) correct so more testing is required there.

Closes #24

Allows one to configure 'tpre' and 'tpost' values which allow for dynamic
script creation.
No templates are provided since they're likely to be closely tied to the
related inventory.

Implementation for question in
First draft for Oefenweb#24
Mention the tpre and tpost options exist and that if pre/post are set the t*
versions are ignored.
Because there are several common extensions for templates the '.j2' requirement
is removed from tpre and tpost.
@goetzk
Copy link
Author

goetzk commented Sep 21, 2023

I have just tested again and seen the expected behaviour so hopefully this is OK to merge.

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.

Ability to template pre/post files
1 participant