adamant-kite-43734
09/08/2022, 8:49 PMadventurous-battery-36116
09/09/2022, 2:38 AMlocals {
node_ip = values(zipmap(rancher2_cluster_sync.get_node_info.nodes[*].hostname, rancher2_cluster_sync.get_node_info.nodes[*].ip_address))
}
You’ll also need the rancher2_cluster_sync
resource for this, but it doesn’t need any arguments:
resource "rancher2_cluster_sync" "get_node_info" {
cluster_id = rancher2_cluster_v2.rke2.cluster_v1_id
}
clever-processor-78736
09/09/2022, 11:41 AM