2017-03-09 06:12:27 -05:00
|
|
|
{% from "prometheus/map.jinja" import alertmanager with context %}
|
|
|
|
{%- if alertmanager.enabled %}
|
|
|
|
|
2017-05-09 03:45:44 -04:00
|
|
|
{%- if pillar.docker is defined and pillar.docker.host is defined %}
|
2017-03-09 06:12:27 -05:00
|
|
|
|
|
|
|
{{alertmanager.dir.config}}/alertmanager.yml:
|
|
|
|
file.managed:
|
|
|
|
- source: salt://prometheus/files/alertmanager.yml
|
|
|
|
- template: jinja
|
|
|
|
|
|
|
|
{%- endif %}
|
|
|
|
{%- endif %}
|