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.

15 lines
318 B

  1. output "master_ip" {
  2. value = {
  3. for name, machine in var.machines :
  4. "${var.prefix}-${name}" => machine.ip
  5. if machine.node_type == "master"
  6. }
  7. }
  8. output "worker_ip" {
  9. value = {
  10. for name, machine in var.machines :
  11. "${var.prefix}-${name}" => machine.ip
  12. if machine.node_type == "worker"
  13. }
  14. }