Merge pull request #15 from thouveng/separate-configuration
Move the configuration into a separate state
This commit is contained in:
commit
2d0cda0b06
2 changed files with 13 additions and 6 deletions
|
@ -1,12 +1,8 @@
|
|||
{%- 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
|
||||
include:
|
||||
- grafana.client.service
|
||||
|
||||
{%- for datasource_name, datasource in client.datasource.iteritems() %}
|
||||
|
11
grafana/client/service.sls
Normal file
11
grafana/client/service.sls
Normal file
|
@ -0,0 +1,11 @@
|
|||
{%- 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 %}
|
Loading…
Reference in a new issue