2021-05-29 13:47:26 +00:00
|
|
|
#jinja2: lstrip_blocks: True
|
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
|
2021-05-29 15:52:24 +00:00
|
|
|
{% 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 %}
|