Added Authentik TF code
All checks were successful
Terraform / Terraform (push) Successful in 28s
Check with kubeconform / lint (push) Successful in 10s

This commit is contained in:
AB from home.homenet
2025-09-16 15:51:14 +03:00
parent 600a1dfb6e
commit 93d7cb6bf1
3 changed files with 279 additions and 0 deletions

View File

@@ -91,4 +91,33 @@ output "certificates" {
fingerprint_sha1 = v.fingerprint_sha1
}
}
}
# Output for applications table generation
output "applications_for_wiki" {
description = "Applications data formatted for wiki table generation"
value = {
proxy_apps = {
for k, v in var.proxy_applications : k => {
name = v.name
type = "Proxy"
url = v.external_host
group = v.group
description = v.meta_description
icon = v.meta_icon
slug = v.slug
}
}
oauth_apps = {
for k, v in var.oauth_applications : k => {
name = v.name
type = "OAuth2/OpenID"
url = length(v.redirect_uris) > 0 ? "https://${split("/", replace(v.redirect_uris[0], "https://", ""))[0]}" : ""
group = v.group
description = v.meta_description
icon = v.meta_icon
slug = v.slug
}
}
}
}