From e39abcbd953857a2a8249970321c8f6b9ade9bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Wed, 24 Jan 2024 17:26:37 +0100 Subject: [PATCH] fix --- monitor/grafana/config.tf | 4 +-- monitor/grafana/index.yaml | 70 +++++++++++++++++++------------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/monitor/grafana/config.tf b/monitor/grafana/config.tf index fbe9d55..9ec3b83 100644 --- a/monitor/grafana/config.tf +++ b/monitor/grafana/config.tf @@ -22,7 +22,7 @@ domain = '' root_url = 'https://${local.dns-name}/' [users] auto_assign_org = true -auto_assign_org_id = 0 +auto_assign_org_id = 1 [auth] oauth_allow_insecure_email_lookup = true signout_redirect_url = '${module.oauth2.sso_signout_url}' @@ -31,7 +31,7 @@ oauth_auto_login = true enabled = true name = vynil scopes = openid profile email -${var.issuer=="letsencrypt-prod"?"#":""}tls_client_ca = /etc/local-certs/ca.crt +${var.issuer=="letsencrypt-prod"?";":""}tls_client_ca = /etc/local-certs/ca.crt client_id = '${module.oauth2.client_id}' client_secret = '${module.oauth2.client_secret}' auth_url = '${module.oauth2.sso_authorize_url}' diff --git a/monitor/grafana/index.yaml b/monitor/grafana/index.yaml index 3b0a327..ee3bf31 100644 --- a/monitor/grafana/index.yaml +++ b/monitor/grafana/index.yaml @@ -6,41 +6,6 @@ metadata: name: grafana description: null options: - admin_name: - default: grafana_admin - examples: - - grafana_admin - type: string - domain-name: - default: your_company.com - examples: - - your_company.com - type: string - domain: - default: your-company - examples: - - your-company - type: string - sub-domain: - default: grafana - examples: - - grafana - type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string - ingress-class: - default: traefik - examples: - - traefik - type: string - app-group: - default: monitor - examples: - - monitor - type: string images: default: busybox: @@ -138,6 +103,16 @@ options: type: string type: object type: object + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string + sub-domain: + default: grafana + examples: + - grafana + type: string volume: default: accessMode: ReadWriteOnce @@ -157,6 +132,31 @@ options: default: 10Gi type: string type: object + domain-name: + default: your_company.com + examples: + - your_company.com + type: string + app-group: + default: monitor + examples: + - monitor + type: string + ingress-class: + default: traefik + examples: + - traefik + type: string + admin_name: + default: grafana_admin + examples: + - grafana_admin + type: string + domain: + default: your-company + examples: + - your-company + type: string dependencies: [] providers: kubernetes: true