summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/alertmanager/templates/alertmanager.yml.j2
blob: 7374dedc5e6900f41fd1815658d091d92fbad521 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# {{ ansible_managed }}

global:
  smtp_smarthost: '{{ prometheus_alertmanager_smtp.smarthost }}'
  smtp_from: '{{ prometheus_alertmanager_smtp.from }}'
  smtp_require_tls: {{ prometheus_alertmanager_smtp.require_tls | ternary('true', 'false') }}
{% if 'auth' in prometheus_alertmanager_smtp %}
  smtp_auth_username: '{{ prometheus_alertmanager_smtp.auth.username }}'
  smtp_auth_password: '{{ prometheus_alertmanager_smtp.auth.password }}'
{% endif %}

route:
  {{ prometheus_alertmanager_route | to_nice_yaml(indent=2) | indent(2) }}
receivers:
  {{ prometheus_alertmanager_receivers | to_nice_yaml(indent=2) | indent(2) }}