formula-prometheus/prometheus/pushgateway.sls
Michal Kobus 2b64974054 Enable prometheus pushgateway persistent storage
Change-Id: If539f26909bd56b168a806773bb9c6574c86bf40
Closes-bug: PROD-21073
2018-07-06 13:16:34 +02:00

12 lines
275 B
Text

{% from "prometheus/map.jinja" import pushgateway with context %}
{%- if pushgateway.enabled %}
{%- if pillar.docker is defined and pillar.docker.host is defined %}
{{pushgateway.dir.data}}:
file.directory:
- makedirs: True
- mode: 755
{%- endif %}
{%- endif %}