Add minio to terraform

This commit is contained in:
Tobias Reisinger 2025-06-08 19:33:26 +02:00
parent 4264017641
commit 37a304d161
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
9 changed files with 130 additions and 0 deletions

View file

@ -4,6 +4,10 @@ terraform {
source = "goauthentik/authentik"
version = "~> 2025.2.0"
}
minio = {
source = "aminueza/minio"
version = "~> 3.5.2"
}
mailcow = {
source = "l-with/mailcow"
version = "~> 0.7.5"
@ -19,4 +23,7 @@ locals {
services_auth = {for key, val in var.services : key => val if val.auth}
services_database = {for key, val in var.services : key => val if val.database}
services_mail = {for key, val in var.services : key => val if val.mail != null}
services_s3 = {for key, val in var.services : key => (val.s3_buckets != null) ? val.s3_buckets : [key] if (val.s3 == "internal")}
buckets_s3 = merge([for key, val in local.services_s3 : {for bucket in val : bucket => key}]...)
}