34 lines
977 B
Terraform
34 lines
977 B
Terraform
output "server_ipv4" {
|
|
description = "Persistente öffentliche IPv4-Adresse des Watermaps-Servers."
|
|
value = hcloud_primary_ip.main.ip_address
|
|
}
|
|
|
|
output "server_id" {
|
|
description = "Hetzner-ID des Servers."
|
|
value = hcloud_server.main.id
|
|
}
|
|
|
|
output "ssh_command" {
|
|
description = "SSH-Befehl für den vorbereiteten Deploy-Benutzer."
|
|
value = "ssh ${var.deploy_user}@${hcloud_primary_ip.main.ip_address}"
|
|
}
|
|
|
|
output "dns_a_record" {
|
|
description = "A-Record, der nach dem Apply manuell beim DNS-Provider angelegt werden soll."
|
|
value = {
|
|
type = "A"
|
|
name = var.dns_name
|
|
value = hcloud_primary_ip.main.ip_address
|
|
}
|
|
}
|
|
|
|
output "routing_data_mount_path" {
|
|
description = "Persistenter Pfad für PBFs, Fahrrouten und PostGIS-Ereignisdaten."
|
|
value = "/srv/watermaps-data"
|
|
}
|
|
|
|
output "routing_volume_id" {
|
|
description = "Hetzner-ID des persistenten Routing- und Ereignisdaten-Volumes."
|
|
value = hcloud_volume.routing_data.id
|
|
}
|