2016-10-21 18:36:50 -04:00
|
|
|
{%- from "grafana/map.jinja" import client with context %}
|
|
|
|
|
2016-10-29 18:27:24 -04:00
|
|
|
grafana_version: {{ client.server.get('version', 3) }}
|
2016-10-21 18:36:50 -04:00
|
|
|
|
|
|
|
grafana:
|
|
|
|
grafana_timeout: 3
|
2016-10-29 18:27:24 -04:00
|
|
|
{%- if client.server.token is defined %}
|
2016-10-21 18:36:50 -04:00
|
|
|
grafana_token: {{ client.server.token }}
|
2016-10-29 18:27:24 -04:00
|
|
|
{%- else %}
|
|
|
|
grafana_user: {{ client.server.user }}
|
|
|
|
grafana_password: {{ client.server.password }}
|
|
|
|
{%- endif %}
|
|
|
|
grafana_url: '{{ client.server.get('protocol', 'http') }}://{{ client.server.host }}:{{ client.server.get('port', 80) }}'
|