From 9356e268226504239511737f0e4fd8ace29b8a5e Mon Sep 17 00:00:00 2001 From: Swann Croiset Date: Tue, 2 May 2017 14:00:09 +0200 Subject: [PATCH] Allow to override the datasource name Change-Id: Ieeeace081771b4840959cceb66b9dea248030482 --- grafana/client/init.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafana/client/init.sls b/grafana/client/init.sls index 0638527..0573119 100644 --- a/grafana/client/init.sls +++ b/grafana/client/init.sls @@ -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 %}