Files

85 lines
2.4 KiB
Terraform

output "fleet_application_url" {
description = "The primary URL to access the Fleet application."
value = "https://${digitalocean_record.fleet.fqdn}"
}
output "app_id" {
description = "The ID of the DigitalOcean App Platform app."
value = digitalocean_app.fleet.id
}
output "app_live_url" {
description = "The live URL assigned by App Platform."
value = digitalocean_app.fleet.live_url
}
output "app_default_ingress" {
description = "The default ingress URL for the app."
value = digitalocean_app.fleet.default_ingress
}
output "database_host" {
description = "The hostname of the MySQL database."
value = local.mysql_host
}
output "database_port" {
description = "The port of the MySQL database."
value = local.mysql_port
}
output "database_user" {
description = "The MySQL database user for Fleet."
value = local.mysql_user
}
output "database_mode" {
description = "Whether the database is 'managed' or 'self-hosted'."
value = var.database_config.node_count >= 1 ? "managed" : "self-hosted"
}
output "cache_host" {
description = "The hostname of the Valkey cache cluster (empty if disabled)."
value = local.cache_host
}
output "cache_port" {
description = "The port of the Valkey cache cluster (0 if disabled)."
value = local.cache_port
}
output "cache_enabled" {
description = "Whether the managed cache is enabled."
value = local.cache_enabled
}
output "spaces_bucket_name" {
description = "The name of the Spaces bucket for Fleet software installers."
value = digitalocean_spaces_bucket.software_installers.name
}
output "spaces_bucket_endpoint" {
description = "The endpoint of the Spaces bucket."
value = digitalocean_spaces_bucket.software_installers.endpoint
}
output "vpc_id" {
description = "The ID of the VPC."
value = digitalocean_vpc.fleet.id
}
output "dns_record_fqdn" {
description = "The FQDN of the DNS record for Fleet."
value = digitalocean_record.fleet.fqdn
}
output "domain_name_servers" {
description = "The name servers for the DigitalOcean DNS zone. Delegate your domain to these."
value = ["ns1.digitalocean.com", "ns2.digitalocean.com", "ns3.digitalocean.com"]
}
output "mysql_droplet_ip" {
description = "The private IP of the self-hosted MySQL Droplet (only when node_count=0)."
value = var.database_config.node_count == 0 ? digitalocean_droplet.mysql[0].ipv4_address_private : null
}