d86a3b962c
* fixes issues in vSphere Terraform contrib. #8436 * fix formatting * add variables to the main module and document changes * add missing newline
15 lines
318 B
HCL
15 lines
318 B
HCL
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"
|
|
}
|
|
}
|