paulbsd-salt/states/gitea/templates/app.ini.j2
2023-07-21 23:14:57 +02:00

15 lines
345 B
Django/Jinja

{% from "gitea/map.jinja" import gitea with context %}
{%- for k,v in gitea.config.items() -%}
{%- if k == "global" %}
{%- for subkey,subval in v.items() -%}
{{ subkey|upper() }} = {{ subval }}
{% endfor -%}
{% else -%}
[{{ k }}]
{% for subkey,subval in v.items() -%}
{{ subkey|upper() }} = {{ subval }}
{% endfor -%}
{% endif %}
{%- endfor %}