formula-prometheus/prometheus/gainsight.sls
Mateusz Matuszkowiak 520c9c6ebf Added new container for prometheus to gainsight
Change-Id: I28c88a10537a2b4aee235501b3854e52a10c7ab8
Related-Bug: PROD-19567
2018-06-18 09:15:23 +00:00

18 lines
429 B
Text

{% from "prometheus/map.jinja" import gainsight with context %}
{%- if gainsight.enabled %}
{%- if pillar.docker is defined and pillar.docker.host is defined %}
{{gainsight.dir.config}}:
file.directory:
- makedirs: True
{{gainsight.dir.config}}/config.ini:
file.managed:
- source: salt://prometheus/files/gainsight.yml
- template: jinja
- require:
- file: {{gainsight.dir.config}}
{%- endif %}
{%- endif %}