nsd-formula/nsd/files/default/pillar-configuration.conf.jinja
Georg Pfuetzenreuter 80e434b94b
feat(config): pillar based config template
Allow management of general configuration using pillar data.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-02-17 20:53:20 +01:00

13 lines
322 B
Django/Jinja

{%- for category, config in nsd.get('config_data').items() %}
{{ category }}:
{%- for option, value in config.items() %}
{%- if value is string %}
{{ option }}: {{ value }}
{%- elif value is iterable %}
{%- for item in value %}
{{ option }}: {{ item }}
{%- endfor %}
{%- endif %}
{%- endfor %}
{%- endfor %}