mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-12-27 15:54:50 +00:00
* VAULT-28146: Add IPV6 support to enos scenarios Add support for testing all raft storage scenarios and variants when running Vault with IPV6 networking. We retain our previous support for IPV4 and create a new variant `ip_version` which can be used to configure the IP version that we wish to test with. It's important to note that the VPC in IPV6 mode is technically mixed and that target machines still associate public IPV6 addresses. That allows us to execute our resources against them from IPV4 networks like developer machines and CI runners. Despite that, we've taken care to ensure that only IPV6 addresses are used in IPV6 mode. Because we previously had assumed the IP Version, Vault address, and listener ports in so many places, this PR is essentially a rewrite and removal of those assumptions. There are also a few places where improvements to scenarios have been included as I encountered them while working on the IPV6 changes. Signed-off-by: Ryan Cragun <me@ryan.ec>
64 lines
1.5 KiB
HCL
64 lines
1.5 KiB
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
output "api_addr_localhost" {
|
|
description = "The localhost API address"
|
|
value = local.api_addr_localhost
|
|
}
|
|
|
|
output "api_addrs" {
|
|
description = "The external API addresses of all nodes the cluster"
|
|
value = local.api_addrs
|
|
}
|
|
|
|
output "cluster_name" {
|
|
description = "The Vault cluster name"
|
|
value = var.cluster_name
|
|
}
|
|
|
|
output "cluster_port" {
|
|
description = "The Vault cluster request forwarding listener port"
|
|
value = var.cluster_port
|
|
}
|
|
|
|
output "external_storage_port" {
|
|
description = "The Vault cluster non-raft external storage port"
|
|
value = var.external_storage_port
|
|
}
|
|
|
|
output "followers" {
|
|
description = "The follower enos_vault_start resources"
|
|
value = enos_vault_start.followers
|
|
}
|
|
|
|
output "leader" {
|
|
description = "The leader enos_vault_start resource"
|
|
value = enos_vault_start.leader
|
|
}
|
|
|
|
output "ipv6s" {
|
|
description = "Vault cluster target host ipv6s"
|
|
value = [for host in var.hosts : host.ipv6]
|
|
}
|
|
|
|
output "listener_port" {
|
|
description = "The Vault cluster TCP listener port"
|
|
value = var.listener_port
|
|
}
|
|
|
|
output "private_ips" {
|
|
description = "Vault cluster target host private_ips"
|
|
value = [for host in var.hosts : host.private_ip]
|
|
}
|
|
|
|
output "public_ips" {
|
|
description = "Vault cluster target host public_ips"
|
|
value = [for host in var.hosts : host.public_ip]
|
|
}
|
|
|
|
output "hosts" {
|
|
description = "The vault cluster instances that were created"
|
|
|
|
value = var.hosts
|
|
}
|