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

17 lines
280 B
Terraform
Raw Normal View History

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