xoxys.alertmanager/templates/conf/web.yml.j2
Robert Kaussow ffe27507d0
All checks were successful
continuous-integration/drone/push Build is passing
initial commit
2021-06-03 00:01:24 +02:00

27 lines
669 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
{% if alertmanager_web_tls_enabled | bool %}
tls_server_config:
cert_file: {{ alertmanager_web_tls_cert_path }}
key_file: {{ alertmanager_web_tls_key_path }}
{% else %}
tls_server_config: {}
{% endif %}
{% if alertmanager_web_http_server is defined %}
http_server_config:
{{ alertmanager_web_http_server | to_nice_yaml(indent=2) | indent(2,False) }}
{% else %}
http_server_config: {}
{% endif %}
{% if alertmanager_web_basic_auth_users is defined %}
basic_auth_users:
{{ alertmanager_web_basic_auth_users | to_nice_yaml(indent=2) | indent(2,False) }}
{% else %}
basic_auth_users: {}
{% endif %}