This commit is contained in:
2023-10-15 13:57:17 +02:00
parent ace83c6b30
commit 394fbd6d30
8 changed files with 503 additions and 486 deletions

View File

@@ -1,16 +1,16 @@
resource "authentik_group" "employes" {
name = "employes"
attributes = jsonencode({for app in var.employes.apps: app => true})
attributes = jsonencode({for app in lookup(var.employes, "apps", []): app => true})
}
resource "authentik_group" "fournisseurs" {
count = var.fournisseurs.enable ? 1 : 0
name = "fournisseurs"
attributes = jsonencode({for app in var.fournisseurs.apps: app => true})
attributes = jsonencode({for app in lookup(var.fournisseurs, "apps", []): app => true})
}
resource "authentik_group" "clients" {
count = var.clients.enable ? 1 : 0
name = "clients"
attributes = jsonencode({for app in var.clients.apps: app => true})
attributes = jsonencode({for app in lookup(var.clients, "apps", []): app => true})
}