formula-prometheus/prometheus/pushgateway.sls

13 lines
275 B
Text
Raw Normal View History

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