JinjaTurtle is my tool for converting a config file into a Jinja2 template (and moving its key:values into yaml for #Ansible to inject).
It now does an okay job at having ‘loop’ style syntax in the Jinja2 template, if the nature of the config values would allow it (sometimes it’s too complicated and so flattened scalar variable names are used as fallback).
TOML, YAML, INI, JSON and XML config files supported.
https://git.mig5.net/mig5/jinjaturtle
#JinjaTurtle
If you have a fediverse account, you can quote this note from your own instance. Search https://goto.mig5.net/users/mig5/statuses/01KBHJR9Z219KG62Z052F8QF6E on your instance and quote it. (Note that quoting is not supported in Mastodon.)
