This commit is contained in:
2023-10-24 14:22:08 +02:00
parent af807d3943
commit 32c4e98d7b
2 changed files with 6 additions and 6 deletions

View File

@@ -25,5 +25,5 @@ resource "authentik_group" "teams" {
count = length(local.sorted-teams)
name = "team-${var.instance}-${local.sorted-teams[count.index].name}"
parent = authentik_group.division.id
attributes = jsonencode({for app in local.sorted-teams[count.index].apps: app => true})
attributes = jsonencode({for app in lookup(local.sorted-teams[count.index],"apps", []): app => true})
}

View File

@@ -20,11 +20,6 @@ options:
items:
type: string
type: array
domain:
default: your-company
examples:
- your-company
type: string
teams:
default: []
items:
@@ -39,6 +34,11 @@ options:
type: string
type: object
type: array
domain:
default: your-company
examples:
- your-company
type: string
dependencies:
- dist: null
category: share