fix
This commit is contained in:
@@ -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})
|
||||
}
|
||||
|
||||
@@ -6,6 +6,18 @@ metadata:
|
||||
name: accounts-management
|
||||
description: null
|
||||
options:
|
||||
employes:
|
||||
default:
|
||||
apps: []
|
||||
examples:
|
||||
- apps: []
|
||||
properties:
|
||||
apps:
|
||||
default: []
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
domain:
|
||||
default: your-company
|
||||
examples:
|
||||
@@ -13,49 +25,37 @@ options:
|
||||
type: string
|
||||
clients:
|
||||
default:
|
||||
enable: false
|
||||
apps: []
|
||||
enable: false
|
||||
examples:
|
||||
- apps: []
|
||||
enable: false
|
||||
properties:
|
||||
enable:
|
||||
type: boolean
|
||||
default: false
|
||||
apps:
|
||||
type: array
|
||||
default: []
|
||||
items:
|
||||
type: string
|
||||
default: []
|
||||
examples:
|
||||
- enable: false
|
||||
apps: []
|
||||
type: array
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
fournisseurs:
|
||||
default:
|
||||
apps: []
|
||||
enable: false
|
||||
apps: []
|
||||
properties:
|
||||
enable:
|
||||
type: boolean
|
||||
default: false
|
||||
apps:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
default: []
|
||||
examples:
|
||||
- enable: false
|
||||
apps: []
|
||||
type: object
|
||||
employes:
|
||||
default:
|
||||
apps: []
|
||||
properties:
|
||||
apps:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
default: []
|
||||
examples:
|
||||
- apps: []
|
||||
enable: false
|
||||
properties:
|
||||
apps:
|
||||
default: []
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
dependencies:
|
||||
- dist: null
|
||||
@@ -68,4 +68,5 @@ providers:
|
||||
postgresql: null
|
||||
restapi: null
|
||||
http: true
|
||||
gitea: null
|
||||
tfaddtype: true
|
||||
|
||||
Reference in New Issue
Block a user