Add Technical_Decomp_JinjaTurtle
parent
5fa9cc8339
commit
f605f4a979
1 changed files with 18 additions and 0 deletions
18
Technical_Decomp_JinjaTurtle.md
Normal file
18
Technical_Decomp_JinjaTurtle.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
## enroll/jinjaturtle.py
|
||||
|
||||
### JinjifyResult (frozen dataclass)
|
||||
|
||||
#### Purpose: result of running the external jinjaturtle CLI tool on a config file.
|
||||
|
||||
#### Fields:
|
||||
|
||||
- template_text: Jinja2 template content
|
||||
- vars_text: YAML mapping text (no leading --- expected)
|
||||
|
||||
#### Lifecycle / where it’s used:
|
||||
|
||||
- manifest._jinjify_managed_files() calls run_jinjaturtle(...).
|
||||
- If successful:
|
||||
- template is written into roles/<role>/templates/<src_rel>.j2
|
||||
- vars are merged into role defaults (single-site) or host_vars (multi-site)
|
||||
- If jinjaturtle fails for a file, it silently skips templating that file (manifest remains optimistic/non-interactive).
|
||||
Loading…
Add table
Add a link
Reference in a new issue