2021-03-15 16:41:04 +08:00
|
|
|
|
|
|
|
output "master_ip" {
|
|
|
|
value = {
|
|
|
|
for instance in upcloud_server.master :
|
2021-09-11 04:55:21 +08:00
|
|
|
instance.hostname => {
|
|
|
|
"public_ip": instance.network_interface[0].ip_address
|
|
|
|
"private_ip": instance.network_interface[1].ip_address
|
|
|
|
}
|
2021-03-15 16:41:04 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "worker_ip" {
|
|
|
|
value = {
|
|
|
|
for instance in upcloud_server.worker :
|
2021-09-11 04:55:21 +08:00
|
|
|
instance.hostname => {
|
|
|
|
"public_ip": instance.network_interface[0].ip_address
|
|
|
|
"private_ip": instance.network_interface[1].ip_address
|
|
|
|
}
|
2021-03-15 16:41:04 +08:00
|
|
|
}
|
|
|
|
}
|
2022-05-12 01:15:03 +08:00
|
|
|
|
|
|
|
output "loadbalancer_domain" {
|
|
|
|
value = var.loadbalancer_enabled ? upcloud_loadbalancer.lb[0].dns_name : null
|
|
|
|
}
|