refactor: simplify project structure
This commit is contained in:
40
outputs.tf
40
outputs.tf
@@ -1,33 +1,9 @@
|
||||
// Root outputs that expose important information from each environment
|
||||
|
||||
// Network environment outputs
|
||||
output "cloudflare_domain" {
|
||||
description = "Base domain for the homelab"
|
||||
value = module.network.domain
|
||||
}
|
||||
|
||||
output "homelab_cloudflared_tunnel_name" {
|
||||
description = "Name of the Cloudflare tunnel"
|
||||
value = module.network.homelab_cloudflared_tunnel_name
|
||||
}
|
||||
|
||||
output "homelab_cloudflared_tunnel_cname_target" {
|
||||
description = "CNAME target for the Cloudflare tunnel"
|
||||
value = module.network.homelab_cloudflared_tunnel_cname_target
|
||||
}
|
||||
|
||||
// Service URLs
|
||||
output "actualbudget_local_url" {
|
||||
description = "Local URL for accessing ActualBudget"
|
||||
value = module.services.actualbudget_local_url
|
||||
}
|
||||
|
||||
output "emulatorjs_frontend_url" {
|
||||
description = "URL for the EmulatorJS frontend"
|
||||
value = module.services.emulatorjs_frontend_url
|
||||
}
|
||||
|
||||
output "emulatorjs_config_url" {
|
||||
description = "URL for the EmulatorJS configuration"
|
||||
value = module.services.emulatorjs_config_url
|
||||
output "services" {
|
||||
description = "Service definitions for all services"
|
||||
value = [
|
||||
for service in module.services.service_definitions : {
|
||||
name = service.name
|
||||
endpoint = contains(keys(service), "hostnames") ? "${service.hostnames[0]}.${module.cloudflare_globals.domain}" : service.endpoint
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user