fix
This commit is contained in:
@@ -6,24 +6,22 @@ metadata:
|
|||||||
name: domain
|
name: domain
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
erp:
|
issuer:
|
||||||
|
default: letsencrypt-prod
|
||||||
|
examples:
|
||||||
|
- letsencrypt-prod
|
||||||
|
type: string
|
||||||
|
ingress-class:
|
||||||
|
default: traefik
|
||||||
|
examples:
|
||||||
|
- traefik
|
||||||
|
type: string
|
||||||
|
devspaces:
|
||||||
default:
|
default:
|
||||||
dolibarr:
|
|
||||||
enable: true
|
|
||||||
enable: false
|
enable: false
|
||||||
examples:
|
examples:
|
||||||
- dolibarr:
|
- enable: false
|
||||||
enable: true
|
|
||||||
enable: false
|
|
||||||
properties:
|
properties:
|
||||||
dolibarr:
|
|
||||||
default:
|
|
||||||
enable: true
|
|
||||||
properties:
|
|
||||||
enable:
|
|
||||||
default: true
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
enable:
|
enable:
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
@@ -50,26 +48,6 @@ options:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
domain-name:
|
|
||||||
default: your_company.com
|
|
||||||
examples:
|
|
||||||
- your_company.com
|
|
||||||
type: string
|
|
||||||
mail:
|
|
||||||
default:
|
|
||||||
enable: false
|
|
||||||
examples:
|
|
||||||
- enable: false
|
|
||||||
properties:
|
|
||||||
enable:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
distributions:
|
distributions:
|
||||||
default:
|
default:
|
||||||
core: core
|
core: core
|
||||||
@@ -85,28 +63,6 @@ options:
|
|||||||
default: domain
|
default: domain
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
infra:
|
|
||||||
default:
|
|
||||||
enable: false
|
|
||||||
traefik:
|
|
||||||
enable: false
|
|
||||||
examples:
|
|
||||||
- enable: false
|
|
||||||
traefik:
|
|
||||||
enable: false
|
|
||||||
properties:
|
|
||||||
enable:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
traefik:
|
|
||||||
default:
|
|
||||||
enable: false
|
|
||||||
properties:
|
|
||||||
enable:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
ci:
|
ci:
|
||||||
default:
|
default:
|
||||||
enable: false
|
enable: false
|
||||||
@@ -129,7 +85,29 @@ options:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
devspaces:
|
erp:
|
||||||
|
default:
|
||||||
|
dolibarr:
|
||||||
|
enable: true
|
||||||
|
enable: false
|
||||||
|
examples:
|
||||||
|
- dolibarr:
|
||||||
|
enable: true
|
||||||
|
enable: false
|
||||||
|
properties:
|
||||||
|
dolibarr:
|
||||||
|
default:
|
||||||
|
enable: true
|
||||||
|
properties:
|
||||||
|
enable:
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
enable:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
mail:
|
||||||
default:
|
default:
|
||||||
enable: false
|
enable: false
|
||||||
examples:
|
examples:
|
||||||
@@ -149,36 +127,33 @@ options:
|
|||||||
default: true
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
ingress-class:
|
infra:
|
||||||
default: traefik
|
|
||||||
examples:
|
|
||||||
- traefik
|
|
||||||
type: string
|
|
||||||
storage-classes:
|
|
||||||
default:
|
default:
|
||||||
BlockReadWriteMany: ''
|
enable: false
|
||||||
BlockReadWriteOnce: ''
|
traefik:
|
||||||
FilesystemReadWriteMany: ''
|
enable: false
|
||||||
FilesystemReadWriteOnce: ''
|
|
||||||
examples:
|
examples:
|
||||||
- BlockReadWriteMany: ''
|
- enable: false
|
||||||
BlockReadWriteOnce: ''
|
traefik:
|
||||||
FilesystemReadWriteMany: ''
|
enable: false
|
||||||
FilesystemReadWriteOnce: ''
|
|
||||||
properties:
|
properties:
|
||||||
BlockReadWriteMany:
|
enable:
|
||||||
default: ''
|
default: false
|
||||||
type: string
|
type: boolean
|
||||||
BlockReadWriteOnce:
|
traefik:
|
||||||
default: ''
|
default:
|
||||||
type: string
|
enable: false
|
||||||
FilesystemReadWriteMany:
|
properties:
|
||||||
default: ''
|
enable:
|
||||||
type: string
|
default: false
|
||||||
FilesystemReadWriteOnce:
|
type: boolean
|
||||||
default: ''
|
type: object
|
||||||
type: string
|
|
||||||
type: object
|
type: object
|
||||||
|
domain-name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
backups:
|
backups:
|
||||||
default:
|
default:
|
||||||
enable: false
|
enable: false
|
||||||
@@ -209,6 +184,31 @@ options:
|
|||||||
default: backup-settings
|
default: backup-settings
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
storage-classes:
|
||||||
|
default:
|
||||||
|
BlockReadWriteMany: ''
|
||||||
|
BlockReadWriteOnce: ''
|
||||||
|
FilesystemReadWriteMany: ''
|
||||||
|
FilesystemReadWriteOnce: ''
|
||||||
|
examples:
|
||||||
|
- BlockReadWriteMany: ''
|
||||||
|
BlockReadWriteOnce: ''
|
||||||
|
FilesystemReadWriteMany: ''
|
||||||
|
FilesystemReadWriteOnce: ''
|
||||||
|
properties:
|
||||||
|
BlockReadWriteMany:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
BlockReadWriteOnce:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
FilesystemReadWriteMany:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
FilesystemReadWriteOnce:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
dependencies: []
|
dependencies: []
|
||||||
providers:
|
providers:
|
||||||
kubernetes: null
|
kubernetes: null
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ resource "kubectl_manifest" "auth" {
|
|||||||
distrib: "${var.distributions.domain}"
|
distrib: "${var.distributions.domain}"
|
||||||
category: "meta"
|
category: "meta"
|
||||||
component: "domain-auth"
|
component: "domain-auth"
|
||||||
options: ${jsonencode(merge(local.global, local.added-auth, local.auth, local.divisions))}
|
options: ${jsonencode(merge(local.global, local.added-auth, local.divisions, local.auth))}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
resource "kubectl_manifest" "infra" {
|
resource "kubectl_manifest" "infra" {
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ locals {
|
|||||||
resource "authentik_group" "division" {
|
resource "authentik_group" "division" {
|
||||||
name = "div-${var.instance}"
|
name = "div-${var.instance}"
|
||||||
parent = var.parent
|
parent = var.parent
|
||||||
attributes = jsonencode(merge([for app in var.apps: {"${app}" = true}]))
|
attributes = jsonencode({for app in var.apps: app => true})
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "authentik_group" "teams" {
|
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 = "div-${var.instance}"
|
parent = "div-${var.instance}"
|
||||||
attributes = jsonencode(merge([for app in local.sorted-teams[count.index].apps: {"${app}" = true}]))
|
attributes = jsonencode({for app in local.sorted-teams[count.index].apps: app => true})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,30 @@ metadata:
|
|||||||
name: division
|
name: division
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
|
teams:
|
||||||
|
default: []
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
apps:
|
||||||
|
type: array
|
||||||
|
default: []
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
apps:
|
||||||
|
default: []
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
|
type: string
|
||||||
parent:
|
parent:
|
||||||
default: employes
|
default: employes
|
||||||
enum:
|
enum:
|
||||||
@@ -15,30 +39,6 @@ options:
|
|||||||
examples:
|
examples:
|
||||||
- employes
|
- employes
|
||||||
type: string
|
type: string
|
||||||
teams:
|
|
||||||
default: []
|
|
||||||
items:
|
|
||||||
properties:
|
|
||||||
apps:
|
|
||||||
default: []
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
name:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type: array
|
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
apps:
|
|
||||||
default: []
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- dist: null
|
- dist: null
|
||||||
category: share
|
category: share
|
||||||
@@ -50,4 +50,4 @@ providers:
|
|||||||
postgresql: null
|
postgresql: null
|
||||||
restapi: null
|
restapi: null
|
||||||
http: true
|
http: true
|
||||||
tfaddtype: null
|
tfaddtype: true
|
||||||
|
|||||||
Reference in New Issue
Block a user