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

output "master_ip" {
value = {
for name, machine in var.machines :
"${var.prefix}-${name}" => machine.ip
if machine.node_type == "master"
}
}
output "worker_ip" {
value = {
for name, machine in var.machines :
"${var.prefix}-${name}" => machine.ip
if machine.node_type == "worker"
}
}