fix
This commit is contained in:
@@ -25,5 +25,5 @@ resource "authentik_group" "teams" {
|
|||||||
count = length(local.sorted-teams)
|
count = length(local.sorted-teams)
|
||||||
name = "team-${var.instance}-${local.sorted-teams[count.index].name}"
|
name = "team-${var.instance}-${local.sorted-teams[count.index].name}"
|
||||||
parent = authentik_group.division.id
|
parent = authentik_group.division.id
|
||||||
attributes = jsonencode({for app in lookup(local.sorted-teams[count.index],"apps", []): app => true})
|
attributes = jsonencode({for app in coalesce(lookup(local.sorted-teams[count.index],"apps", []), []): app => true})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,11 @@ metadata:
|
|||||||
name: division
|
name: division
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
|
apps:
|
||||||
|
default: []
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
parent:
|
parent:
|
||||||
default: employes
|
default: employes
|
||||||
enum:
|
enum:
|
||||||
@@ -15,11 +20,11 @@ options:
|
|||||||
examples:
|
examples:
|
||||||
- employes
|
- employes
|
||||||
type: string
|
type: string
|
||||||
apps:
|
domain:
|
||||||
default: []
|
default: your-company
|
||||||
items:
|
examples:
|
||||||
type: string
|
- your-company
|
||||||
type: array
|
type: string
|
||||||
teams:
|
teams:
|
||||||
default: []
|
default: []
|
||||||
items:
|
items:
|
||||||
@@ -34,11 +39,6 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- dist: null
|
- dist: null
|
||||||
category: share
|
category: share
|
||||||
|
|||||||
Reference in New Issue
Block a user