Compare commits
1 Commits
4a2e9675b7
...
67310cdb79
| Author | SHA1 | Date | |
|---|---|---|---|
| 67310cdb79 |
@@ -3,7 +3,7 @@ resource "authentik_group" "this" {
|
||||
|
||||
name = each.value.name
|
||||
is_superuser = each.value.is_superuser
|
||||
parents = each.value.parents != null ? [for p in each.value.parents : authentik_group.this[p].id] : []
|
||||
parents = each.value.parents
|
||||
attributes = jsonencode(each.value.attributes)
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ variable "groups" {
|
||||
type = map(object({
|
||||
name = string
|
||||
is_superuser = optional(bool, false)
|
||||
# PKs of existing parent groups. These must be literal group PKs, not keys
|
||||
# into this map: authentik_group cannot reference itself.
|
||||
parents = optional(list(string), null)
|
||||
attributes = optional(map(string), {})
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user