2f70396a78
Change-Id: I7f146e0207ada58f0723b14d0a625a6bce67ea9f
17 lines
398 B
Text
17 lines
398 B
Text
{% from "prometheus/map.jinja" import server with context %}
|
|
{%- if server.enabled %}
|
|
|
|
{%- if pillar.docker.host is defined %}
|
|
|
|
{{server.dir.config}}/prometheus.yml:
|
|
file.managed:
|
|
- source: salt://prometheus/files/prometheus.yml
|
|
- template: jinja
|
|
|
|
{{server.dir.config}}/alerts.yml:
|
|
file.managed:
|
|
- source: salt://prometheus/files/alerts.yml
|
|
- template: jinja
|
|
|
|
{%- endif %}
|
|
{%- endif %}
|