formula-prometheus/prometheus/pushgateway.sls

13 lines
275 B
Plaintext

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