fix
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
resource "authentik_group" "employes" {
|
resource "authentik_group" "employes" {
|
||||||
name = "employes"
|
name = "employes"
|
||||||
attributes = jsonencode(merge({},[for app in var.employes.apps: {"${app}" = true}]))
|
attributes = jsonencode({for app in var.employes.apps: app => true})
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "authentik_group" "fournisseurs" {
|
resource "authentik_group" "fournisseurs" {
|
||||||
count = var.fournisseurs.enable ? 1 : 0
|
count = var.fournisseurs.enable ? 1 : 0
|
||||||
name = "fournisseurs"
|
name = "fournisseurs"
|
||||||
attributes = jsonencode(merge({},[for app in var.fournisseurs.apps: {"${app}" = true}]))
|
attributes = jsonencode({for app in var.fournisseurs.apps: app => true})
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "authentik_group" "clients" {
|
resource "authentik_group" "clients" {
|
||||||
count = var.clients.enable ? 1 : 0
|
count = var.clients.enable ? 1 : 0
|
||||||
name = "clients"
|
name = "clients"
|
||||||
attributes = jsonencode(merge({},[for app in var.clients.apps: {"${app}" = true}]))
|
attributes = jsonencode({for app in var.clients.apps: app => true})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,11 @@ metadata:
|
|||||||
name: accounts-management
|
name: accounts-management
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
|
type: string
|
||||||
clients:
|
clients:
|
||||||
default:
|
default:
|
||||||
enable: false
|
enable: false
|
||||||
@@ -23,6 +28,23 @@ options:
|
|||||||
- enable: false
|
- enable: false
|
||||||
apps: []
|
apps: []
|
||||||
type: object
|
type: object
|
||||||
|
fournisseurs:
|
||||||
|
default:
|
||||||
|
enable: false
|
||||||
|
apps: []
|
||||||
|
properties:
|
||||||
|
enable:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
apps:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
default: []
|
||||||
|
examples:
|
||||||
|
- enable: false
|
||||||
|
apps: []
|
||||||
|
type: object
|
||||||
employes:
|
employes:
|
||||||
default:
|
default:
|
||||||
apps: []
|
apps: []
|
||||||
@@ -35,28 +57,6 @@ options:
|
|||||||
examples:
|
examples:
|
||||||
- apps: []
|
- apps: []
|
||||||
type: object
|
type: object
|
||||||
fournisseurs:
|
|
||||||
default:
|
|
||||||
enable: false
|
|
||||||
apps: []
|
|
||||||
properties:
|
|
||||||
enable:
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
apps:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
default: []
|
|
||||||
examples:
|
|
||||||
- enable: false
|
|
||||||
apps: []
|
|
||||||
type: object
|
|
||||||
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