From 717f29f86827578c868d6a289d51ff134507b98e Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 21 Jul 2016 13:08:49 -0400 Subject: [PATCH] ansible: grafana ini template should condition github api configuration Signed-off-by: Alfredo Deza --- ansible/roles/grafana/templates/grafana.ini.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/grafana/templates/grafana.ini.j2 b/ansible/roles/grafana/templates/grafana.ini.j2 index ea0db85e..9441e0ae 100644 --- a/ansible/roles/grafana/templates/grafana.ini.j2 +++ b/ansible/roles/grafana/templates/grafana.ini.j2 @@ -149,6 +149,7 @@ org_name = Ceph # specify role for unauthenticated users ;org_role = Viewer +{% if github_client_id is defined %} #################################### Github Auth ########################## [auth.github] enabled = false @@ -161,7 +162,7 @@ scopes = user:email,read:org ;api_url = https://api.github.com/user ;team_ids = allowed_organizations = ceph - +{% endif %} #################################### Google Auth ########################## [auth.google] ;enabled = false -- 2.39.5