formula-prometheus/prometheus/alertmanager.sls
Martin Polreich e9dc06012c Added Kitchen tests and Travis
Change-Id: Ie5620ef3c416df76287d7864dbc46e0b9c66ab79
2017-05-19 15:26:00 +02:00

14 lines
350 B
Plaintext

{% from "prometheus/map.jinja" import alertmanager with context %}
{%- if alertmanager.enabled %}
{%- if pillar.docker is defined and pillar.docker.host is defined %}
{{alertmanager.dir.config}}/alertmanager.yml:
file.managed:
- source: salt://prometheus/files/alertmanager.yml
- template: jinja
- makedirs: True
{%- endif %}
{%- endif %}