57167d8bfd
This patch separates the configuration of Grafana client. This allows to configure the client, restart the minion to read the conf and finally apply the grafana.client state.
12 lines
261 B
Plaintext
12 lines
261 B
Plaintext
{%- from "grafana/map.jinja" import client with context %}
|
|
{%- if client.get('enabled', False) %}
|
|
|
|
/etc/salt/minion.d/_grafana.conf:
|
|
file.managed:
|
|
- source: salt://grafana/files/_grafana.conf
|
|
- template: jinja
|
|
- user: root
|
|
- group: root
|
|
|
|
{%- endif %}
|