Add client metadata
This commit is contained in:
parent
13574258bc
commit
18fe0c04c7
2 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
{%- from "grafana/map.jinja" import client with context %}
|
{%- from "grafana/map.jinja" import client with context %}
|
||||||
{%- if client.enabled %}
|
{%- if client.get('enabled', False) %}
|
||||||
|
|
||||||
/etc/salt/minion.d/_grafana.conf:
|
/etc/salt/minion.d/_grafana.conf:
|
||||||
file.managed:
|
file.managed:
|
||||||
|
@ -22,7 +22,7 @@ grafana_client_datasource_{{ datasource_name }}:
|
||||||
- user: {{ datasource.user }}
|
- user: {{ datasource.user }}
|
||||||
- password: {{ datasource.password }}
|
- password: {{ datasource.password }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if datasource.get('is_default', false) %}
|
{%- if datasource.get('is_default', False) %}
|
||||||
- is_default: {{ datasource.is_default|lower }}
|
- is_default: {{ datasource.is_default|lower }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if datasource.database is defined %}
|
{%- if datasource.database is defined %}
|
||||||
|
|
6
metadata/service/client/single.yml
Normal file
6
metadata/service/client/single.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
applications:
|
||||||
|
- grafana.client
|
||||||
|
parameters:
|
||||||
|
grafana:
|
||||||
|
client:
|
||||||
|
enabled: true
|
Loading…
Reference in a new issue