c12s-kubespray/contrib/terraform/vsphere/modules/kubernetes-cluster/output.tf

16 lines
318 B
Terraform
Raw Normal View History

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"
}
}