paulbsd-salt/states/gitea/files/app.ini.j2
2021-12-29 16:56:39 +01:00

14 lines
344 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 -%}