e9dc06012c
Change-Id: Ie5620ef3c416df76287d7864dbc46e0b9c66ab79
19 lines
465 B
Text
19 lines
465 B
Text
{% from "prometheus/map.jinja" import server with context %}
|
|
{%- if server.enabled %}
|
|
|
|
{%- if pillar.docker is defined and pillar.docker.host is defined %}
|
|
|
|
{{server.dir.config}}/prometheus.yml:
|
|
file.managed:
|
|
- source: salt://prometheus/files/prometheus.yml
|
|
- template: jinja
|
|
- makedirs: True
|
|
|
|
{{server.dir.config}}/alerts.yml:
|
|
file.managed:
|
|
- source: salt://prometheus/files/alerts.yml
|
|
- template: jinja
|
|
- makedirs: True
|
|
|
|
{%- endif %}
|
|
{%- endif %}
|