fix
This commit is contained in:
@@ -10,15 +10,18 @@ locals {
|
||||
])
|
||||
}
|
||||
|
||||
data "authentik_group" "parent" {
|
||||
name = var.parent
|
||||
}
|
||||
resource "authentik_group" "division" {
|
||||
name = "div-${var.instance}"
|
||||
parent = var.parent
|
||||
parent = data.authentik_group.parent.id
|
||||
attributes = jsonencode({for app in var.apps: app => true})
|
||||
}
|
||||
|
||||
resource "authentik_group" "teams" {
|
||||
count = length(local.sorted-teams)
|
||||
name = "team-${var.instance}-${local.sorted-teams[count.index].name}"
|
||||
parent = "div-${var.instance}"
|
||||
parent = authentik_group.division.id
|
||||
attributes = jsonencode({for app in local.sorted-teams[count.index].apps: app => true})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user