xoxys.prometheus/templates/conf/web.yml.j2
Robert Kaussow fd59ad7165
All checks were successful
continuous-integration/drone/push Build is passing
feat: add web tls config
2021-05-29 17:52:24 +02:00

27 lines
655 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
{% if prometheus_web_tls_enabled | bool %}
tls_server_config:
cert_file: {{ prometheus_web_tls_cert_path }}
key_file: {{ prometheus_web_tls_key_path }}
{% else %}
tls_server_config: {}
{% endif %}
{% if prometheus_web_http_server is defined %}
http_server_config:
{{ prometheus_web_http_server | to_nice_yaml(indent=2) | indent(2,False) }}
{% else %}
http_server_config: {}
{% endif %}
{% if prometheus_web_basic_auth_users is defined %}
basic_auth_users:
{{ prometheus_web_basic_auth_users | to_nice_yaml(indent=2) | indent(2,False) }}
{% else %}
basic_auth_users: {}
{% endif %}