Files
terraform-binarylane/modules/binarylane/outputs.tf
T
unkin-agent 0ee9dac5b0
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline failed
Add mta1/mta2 DMZ mail gateways with WireGuard bootstrap
2026-10-12 21:50:09 +11:00

16 lines
583 B
Terraform

output "public_ipv4" {
description = "Public IPv4 per gateway."
value = { for k, v in binarylane_server.gateway : k => v.public_ipv4_addresses[0] }
}
output "wireguard" {
description = "Tunnel address and WireGuard public key per gateway, plus the prodnxsr0020 end."
value = {
hub = { address = local.hub_address, public_key = wireguard_asymmetric_key.hub.public_key, listen_port = local.hub_port }
gateways = { for k, v in local.gateways : k => {
address = v.wg_address
public_key = wireguard_asymmetric_key.gateway[k].public_key
} }
}
}