d92d2d7ce8
Change-Id: I7cc5f00608127e0bf4df5bbd58db4cae9816a402
17 lines
427 B
Text
17 lines
427 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
|
|
|
|
{{server.dir.config}}/alerts.yml:
|
|
file.managed:
|
|
- source: salt://prometheus/files/alerts.yml
|
|
- template: jinja
|
|
|
|
{%- endif %}
|
|
{%- endif %}
|