summaryrefslogtreecommitdiff
path: root/roles/monitoring/grafana/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-11-15 19:10:53 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-11-15 19:10:53 +0100
commit289bc69e05df16245971db252668b7ba55ee3500 (patch)
tree3a667ebe7f8d1468cf2e7da8a1a4e9adacf98f40 /roles/monitoring/grafana/tasks
parentch-mon: add certificate for monitoring (diff)
ch-mon: monitoring services and landingpage now use new sso
Diffstat (limited to 'roles/monitoring/grafana/tasks')
-rw-r--r--roles/monitoring/grafana/tasks/main.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/monitoring/grafana/tasks/main.yml b/roles/monitoring/grafana/tasks/main.yml
index 1e21ea39..de2857df 100644
--- a/roles/monitoring/grafana/tasks/main.yml
+++ b/roles/monitoring/grafana/tasks/main.yml
@@ -68,6 +68,28 @@
value: "{{ item.value | string }}"
notify: restart grafana
+- name: configure grafana auth
+ loop: "{{ grafana_config_auth | dict2items }}"
+ loop_control:
+ label: "{{ item.key }}"
+ ini_file:
+ path: /etc/grafana/grafana.ini
+ section: auth
+ option: "{{ item.key }}"
+ value: "{{ item.value | string }}"
+ notify: restart grafana
+
+- name: configure grafana auth.proxy
+ loop: "{{ grafana_config_auth_proxy | dict2items }}"
+ loop_control:
+ label: "{{ item.key }}"
+ ini_file:
+ path: /etc/grafana/grafana.ini
+ section: auth.proxy
+ option: "{{ item.key }}"
+ value: "{{ item.value | string }}"
+ notify: restart grafana
+
- name: install datasources
copy: