From a7085c04c30b448827ae6f496daeadfa9f55a45f Mon Sep 17 00:00:00 2001 From: John Giannelos Date: Thu, 19 Jan 2017 13:33:20 +0100 Subject: [PATCH] Fix DB configuration for grafana. --- roles/grafana/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/grafana/tasks/main.yml b/roles/grafana/tasks/main.yml index 0b74f32..f0aae20 100644 --- a/roles/grafana/tasks/main.yml +++ b/roles/grafana/tasks/main.yml @@ -69,7 +69,11 @@ - "mysql-grafana" env: GF_SECURITY_ADMIN_PASSWORD: "{{ grafana_admin_password }}" - GF_DATABASE_URL: "mysql://{{ grafana_mysql_user }}:{{ grafana_mysql_password }}@mysql-grafana:3306" + GF_DATABASE_TYPE: "mysql" + GF_DATABASE_HOST: "mysql-grafana:3306" + GF_DATABASE_NAME: "grafana" + GF_DATABASE_USER: "{{ grafana_mysql_user }}" + GF_DATABASE_PASSWORD: "{{ grafana_mysql_password }}" restart_policy: always tags: - grafana