Add authentik to opentofu

This commit is contained in:
Tobias Reisinger 2024-09-28 14:14:09 +02:00
parent 496cd360c6
commit 01ee9d4b44
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
9 changed files with 184 additions and 84 deletions

View file

@ -14,6 +14,17 @@ output "hosts" {
}
}
output "authentik_data" {
value = {
for key, val in local.service_auths : key => {
"base_url" = "${var.authentik_url}/application/o/${authentik_application.service_applications[key].slug}"
"client_id" = authentik_provider_oauth2.service_providers[key].client_id
"client_secret" = authentik_provider_oauth2.service_providers[key].client_secret
}
}
sensitive = true
}
output "postgresql_service_roles" {
value = postgresql_role.service_roles
sensitive = true