2021-02-26 12:20:15 +00:00
|
|
|
output "master_ip" {
|
|
|
|
value = {
|
2021-11-12 19:40:29 +00:00
|
|
|
for name, machine in var.machines :
|
2022-01-25 13:24:30 +00:00
|
|
|
"${var.prefix}-${name}" => machine.ip
|
2021-11-12 19:40:29 +00:00
|
|
|
if machine.node_type == "master"
|
2021-02-26 12:20:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "worker_ip" {
|
|
|
|
value = {
|
2021-11-12 19:40:29 +00:00
|
|
|
for name, machine in var.machines :
|
2022-01-25 13:24:30 +00:00
|
|
|
"${var.prefix}-${name}" => machine.ip
|
2021-11-12 19:40:29 +00:00
|
|
|
if machine.node_type == "worker"
|
2021-02-26 12:20:15 +00:00
|
|
|
}
|
|
|
|
}
|