2023-06-22 22:14:22 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2023-09-18 21:10:37 +00:00
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
2023-06-22 22:14:22 +00:00
|
|
|
|
|
|
|
output "private_ips" {
|
|
|
|
description = "Consul cluster target host private_ips"
|
|
|
|
value = [for host in var.target_hosts : host.private_ip]
|
|
|
|
}
|
|
|
|
|
|
|
|
output "public_ips" {
|
|
|
|
description = "Consul cluster target host public_ips"
|
|
|
|
value = [for host in var.target_hosts : host.public_ip]
|
|
|
|
}
|
|
|
|
|
|
|
|
output "target_hosts" {
|
|
|
|
description = "The Consul cluster instances that were created"
|
|
|
|
|
|
|
|
value = var.target_hosts
|
|
|
|
}
|