This commit is contained in:
2024-05-24 09:19:55 +02:00
parent 8a08647dd6
commit e37f661699
4 changed files with 12 additions and 10 deletions

View File

@@ -11,23 +11,23 @@ options:
examples: examples:
- your-company - your-company
type: string type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
domain_name: domain_name:
default: your_company.com default: your_company.com
examples: examples:
- your_company.com - your_company.com
type: string type: string
sub_domain:
default: null
ingress_class: ingress_class:
default: traefik default: traefik
examples: examples:
- traefik - traefik
type: string type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
sub_domain:
default: null
dependencies: dependencies:
- dist: null - dist: null
category: share category: share
@@ -37,6 +37,7 @@ providers:
authentik: true authentik: true
kubectl: null kubectl: null
postgresql: null postgresql: null
mysql: null
restapi: null restapi: null
http: true http: true
gitea: null gitea: null

View File

@@ -33,8 +33,8 @@ data "authentik_flow" "default-authorization-flow" {
resource "authentik_provider_proxy" "provider_forward" { resource "authentik_provider_proxy" "provider_forward" {
name = "authentik-forward-provider" name = "authentik-forward-provider"
internal_host = "http://authentik" internal_host = "http://authentik-authentik"
external_host = "http://authentik" external_host = "http://authentik-authentik"
authorization_flow = data.authentik_flow.default-authorization-flow.id authorization_flow = data.authentik_flow.default-authorization-flow.id
} }

View File

@@ -20,6 +20,7 @@ providers:
authentik: true authentik: true
kubectl: true kubectl: true
postgresql: null postgresql: null
mysql: null
restapi: null restapi: null
http: true http: true
gitea: null gitea: null

View File

@@ -9,7 +9,7 @@ locals {
//TODO: trouver un moyen d'attendre que le service soit ready //TODO: trouver un moyen d'attendre que le service soit ready
data "http" "get_ldap_outpost" { data "http" "get_ldap_outpost" {
depends_on = [authentik_provider_ldap.provider_ldap] depends_on = [authentik_provider_ldap.provider_ldap]
url = "http://authentik.${var.namespace}.svc/api/v3/outposts/instances/?name__iexact=ldap" url = "http://authentik-authentik.${var.namespace}.svc/api/v3/outposts/instances/?name__iexact=ldap"
method = "GET" method = "GET"
request_headers = local.request_headers request_headers = local.request_headers
lifecycle { lifecycle {