From b0c0189066a486f9da4a048c7780dbc640031d27 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 7 Sep 2025 22:14:12 -0700 Subject: Remove portainer and add some monitoring updates --- .../roles/mon/templates/volumes/grafana/config.ini | 28 ++++++++++++++++++++++ .../mon/templates/volumes/grafana/data/.gitkeep | 0 2 files changed, 28 insertions(+) create mode 100644 playbooks/roles/mon/templates/volumes/grafana/config.ini create mode 100644 playbooks/roles/mon/templates/volumes/grafana/data/.gitkeep (limited to 'playbooks/roles/mon/templates/volumes/grafana') diff --git a/playbooks/roles/mon/templates/volumes/grafana/config.ini b/playbooks/roles/mon/templates/volumes/grafana/config.ini new file mode 100644 index 0000000..e0371ea --- /dev/null +++ b/playbooks/roles/mon/templates/volumes/grafana/config.ini @@ -0,0 +1,28 @@ +[date_formats] +full_date = YYYY-MM-DD @ HH:mm:ss +interval_second = HH:mm:ss +interval_minute = HH:mm +interval_hour = DD.MM. HH:mm +interval_day = DD.MM. +interval_month = MM-YYYY +interval_year = YYYY + +[server] +root_url = https://{{ grafana_domain }} + +[auth.generic_oauth] +enabled = true +name = liz.coffee <3 +icon = signin +client_id = grafana +client_secret = {{ grafana_secret }} +scopes = openid profile email groups +empty_scopes = false +auth_url="https://{{ idm_domain }}/ui/oauth2" +token_url="https://{{ idm_domain }}/oauth2/token" +api_url="https://{{ idm_domain }}/oauth2/openid/grafana/userinfo" +login_attribute_path = preferred_username +groups_attribute_path = groups +name_attribute_path = name +role_attribute_path = contains(groups, 'grafana_admins@idm.liz.coffee') && 'Admin' || 'Viewer' +use_pkce = true diff --git a/playbooks/roles/mon/templates/volumes/grafana/data/.gitkeep b/playbooks/roles/mon/templates/volumes/grafana/data/.gitkeep new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3-70-g09d2