1
0
Fork 0
mirror of synced 2024-11-22 00:45:34 -05:00

Allow to override the datasource name

Change-Id: Ieeeace081771b4840959cceb66b9dea248030482
This commit is contained in:
Swann Croiset 2017-05-02 14:00:09 +02:00
parent 32bf75e7c8
commit 9356e26822

View file

@ -8,7 +8,7 @@ include:
grafana_client_datasource_{{ datasource_name }}:
grafana3_datasource.present:
- name: {{ datasource_name }}
- name: {{ datasource.name|default(datasource_name) }}
- type: {{ datasource.type }}
- url: http://{{ datasource.host }}:{{ datasource.get('port', 80) }}
{%- if datasource.access is defined %}