858fc1fb57
Change-Id: Ib46fd444ef87a6a76775ac37f6b4876aab6fd49c Related-Bug: PROD-21034
29 lines
704 B
Text
29 lines
704 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.crontab}}:
|
|
file.directory:
|
|
- makedirs: True
|
|
|
|
{{gainsight.dir.config}}/config.ini:
|
|
file.managed:
|
|
- source: salt://prometheus/files/gainsight/gainsight_config.yml
|
|
- template: jinja
|
|
- require:
|
|
- file: {{gainsight.dir.config}}
|
|
|
|
{{gainsight.dir.crontab}}/crontab:
|
|
file.managed:
|
|
- source: salt://prometheus/files/gainsight/gainsight_crontab.yml
|
|
- template: jinja
|
|
- require:
|
|
- file: {{gainsight.dir.crontab}}
|
|
|
|
{%- endif %}
|
|
{%- endif %}
|