infrastructure/modules/services/output.tf

32 lines
1,004 B
Terraform
Raw Permalink Normal View History

2024-09-29 23:22:03 +00:00
output "authentik_data" {
value = {
for key in keys(authentik_application.service_applications) : key => {
2024-10-09 00:29:08 +00:00
"base_url" = "${var.authentik_url}/application/o/${authentik_application.service_applications[key].slug}"
2024-09-29 23:22:03 +00:00
"client_id" = authentik_provider_oauth2.service_providers[key].client_id
"client_secret" = authentik_provider_oauth2.service_providers[key].client_secret
}
}
sensitive = true
}
output "postgresql_data" {
value = {
for key in keys(postgresql_database.service_databases) : key => {
"user" = postgresql_role.service_roles[key].name
"pass" = postgresql_role.service_roles[key].password
"database" = postgresql_database.service_databases[key].name
}
}
sensitive = true
}
2024-10-29 21:43:05 +00:00
output "mailcow_data" {
value = {
for key in keys(mailcow_mailbox.services) : key => {
"address" = mailcow_mailbox.services[key].address
"password" = mailcow_mailbox.services[key].password
}
}
sensitive = true
}