xoxys.alertmanager/templates/conf/web.yml.j2

27 lines
669 B
Plaintext
Raw Permalink Normal View History

2021-06-02 22:01:24 +00:00
#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 %}