adding Nextcloud in the metas

This commit is contained in:
2023-07-18 09:36:33 +02:00
parent 096cb363f1
commit ae97b22a53
4 changed files with 205 additions and 62 deletions

View File

@@ -17,6 +17,7 @@ locals {
infra = { for k, v in var.infra : k => v if k!="enable" }
ci = { for k, v in var.ci : k => v if k!="enable" }
erp = { for k, v in var.erp : k => v if k!="enable" }
apps = { for k, v in var.apps : k => v if k!="enable" }
# Force install authentik and it's modules when any are needed
use-ldap = (var.ci.enable && var.ci.gitea.enable) || (var.erp.enable && var.erp.dolibarr.enable)
@@ -97,3 +98,19 @@ resource "kubectl_manifest" "erp" {
options: ${jsonencode(merge(local.global, local.erp))}
EOF
}
resource "kubectl_manifest" "apps" {
count = var.apps.enable ? 1 : 0
yaml_body = <<-EOF
apiVersion: "vynil.solidite.fr/v1"
kind: "Install"
metadata:
name: "apps"
namespace: "${var.namespace}"
labels: ${jsonencode(local.common-labels)}
spec:
distrib: "${var.distributions.domain}"
category: "meta"
component: "domain-apps"
options: ${jsonencode(merge(local.global, local.apps))}
EOF
}