520c9c6ebf
Change-Id: I28c88a10537a2b4aee235501b3854e52a10c7ab8 Related-Bug: PROD-19567
18 lines
429 B
Text
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 %}
|