]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: grafana ini template should condition github api configuration 419/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 21 Jul 2016 17:08:49 +0000 (13:08 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 22 Jul 2016 12:09:45 +0000 (08:09 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/roles/grafana/templates/grafana.ini.j2

index ea0db85e7bb6cc7578f126448032844c2e98c3e4..9441e0ae85996c65b32f1c381d4b7f00d716ab84 100644 (file)
@@ -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