2021-02-26 20:20:15 +08:00
|
|
|
output "master_ip" {
|
|
|
|
value = {
|
2021-11-13 03:40:29 +08:00
|
|
|
for name, machine in var.machines :
|
|
|
|
name => machine.ip
|
|
|
|
if machine.node_type == "master"
|
2021-02-26 20:20:15 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "worker_ip" {
|
|
|
|
value = {
|
2021-11-13 03:40:29 +08:00
|
|
|
for name, machine in var.machines :
|
|
|
|
name => machine.ip
|
|
|
|
if machine.node_type == "worker"
|
2021-02-26 20:20:15 +08:00
|
|
|
}
|
|
|
|
}
|
2021-11-13 03:40:29 +08:00
|
|
|
|