formula-prometheus/prometheus/alertmanager.sls
Filip Pytloun d92d2d7ce8 Use salt support to generate grains
Change-Id: I7cc5f00608127e0bf4df5bbd58db4cae9816a402
2017-05-09 10:23:12 +02:00

12 lines
331 B
Text

{% 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
{%- endif %}
{%- endif %}