paulbsd-salt/states/dovecot/files/config.j2

21 lines
482 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
2021-01-02 16:16:41 +01:00
{%- macro render(key, value) -%}
2020-07-10 00:58:55 +02:00
{%- if value is mapping %}
2021-01-02 16:16:41 +01:00
{{ key }} { {%- for k, v in value.items() %}
{{ render(k, v) }}
2020-07-10 00:58:55 +02:00
{%- endfor %}
}
{%- elif value is string %}
{{- key }} = {{ value|replace("\\\\","\\") }}
{%- elif key == "includes" %}
{%- for inc in value %}
!include {{ inc }}
{%- endfor %}
{%- endif %}
{%- endmacro -%}
{%- for key, value in config.items() %}
{{ render(key, value) }}
2021-08-19 21:15:24 +02:00
{%- endfor %}