From: Alfredo Deza Date: Thu, 21 Jul 2016 17:08:49 +0000 (-0400) Subject: ansible: grafana ini template should condition github api configuration X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F419%2Fhead;p=ceph-build.git ansible: grafana ini template should condition github api configuration Signed-off-by: Alfredo Deza --- 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