From dd7b4ce05728af5f886b7082365ef88e90e8707c Mon Sep 17 00:00:00 2001 From: mapleFU <1506118561@qq.com> Date: Wed, 11 Mar 2020 10:19:10 +0800 Subject: [PATCH 1/2] [Init] Try to init project --- roles/grafana/templates/grafana.ini.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/grafana/templates/grafana.ini.j2 b/roles/grafana/templates/grafana.ini.j2 index 6ddcb9c81..cce28dd45 100644 --- a/roles/grafana/templates/grafana.ini.j2 +++ b/roles/grafana/templates/grafana.ini.j2 @@ -164,7 +164,9 @@ admin_password = {{ grafana_admin_password }} #################################### Anonymous Auth ########################## [auth.anonymous] # enable anonymous access -;enabled = false +;enabled = true + +;disable_login_form = true # specify organization name that should be used for unauthenticated users ;org_name = Main Org. From 7be418d545b78835f8dd807b8100762193408a0e Mon Sep 17 00:00:00 2001 From: mapleFU <1506118561@qq.com> Date: Wed, 11 Mar 2020 23:29:50 +0800 Subject: [PATCH 2/2] [Update] Change spec and allow login without pwd. --- roles/grafana/templates/grafana.ini.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/grafana/templates/grafana.ini.j2 b/roles/grafana/templates/grafana.ini.j2 index cce28dd45..6835abbcf 100644 --- a/roles/grafana/templates/grafana.ini.j2 +++ b/roles/grafana/templates/grafana.ini.j2 @@ -164,9 +164,9 @@ admin_password = {{ grafana_admin_password }} #################################### Anonymous Auth ########################## [auth.anonymous] # enable anonymous access -;enabled = true +enabled = true -;disable_login_form = true +disable_login_form = true # specify organization name that should be used for unauthenticated users ;org_name = Main Org.