You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
594 B

  1. output "master_ip" {
  2. value = {
  3. for instance in upcloud_server.master :
  4. instance.hostname => {
  5. "public_ip" : instance.network_interface[0].ip_address
  6. "private_ip" : instance.network_interface[1].ip_address
  7. }
  8. }
  9. }
  10. output "worker_ip" {
  11. value = {
  12. for instance in upcloud_server.worker :
  13. instance.hostname => {
  14. "public_ip" : instance.network_interface[0].ip_address
  15. "private_ip" : instance.network_interface[1].ip_address
  16. }
  17. }
  18. }
  19. output "loadbalancer_domain" {
  20. value = var.loadbalancer_enabled ? upcloud_loadbalancer.lb[0].dns_name : null
  21. }