2023-03-15 16:00:52 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2023-09-18 21:10:37 +00:00
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
2023-03-15 16:00:52 +00:00
|
|
|
|
2023-06-22 22:14:22 +00:00
|
|
|
// Shim module to handle the fact that Vault doesn't actually need a backend module when we use raft.
|
2022-08-23 19:53:41 +00:00
|
|
|
terraform {
|
2023-06-22 22:14:22 +00:00
|
|
|
required_version = ">= 1.2.0"
|
|
|
|
|
2022-08-23 19:53:41 +00:00
|
|
|
required_providers {
|
|
|
|
enos = {
|
2023-06-22 22:14:22 +00:00
|
|
|
source = "app.terraform.io/hashicorp-qti/enos"
|
|
|
|
version = ">= 0.4.0"
|
2022-08-23 19:53:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-22 22:14:22 +00:00
|
|
|
variable "cluster_name" {
|
2022-08-23 19:53:41 +00:00
|
|
|
default = null
|
|
|
|
}
|
2023-06-22 22:14:22 +00:00
|
|
|
|
|
|
|
variable "cluster_tag_key" {
|
2022-08-23 19:53:41 +00:00
|
|
|
default = null
|
|
|
|
}
|
2023-06-22 22:14:22 +00:00
|
|
|
|
|
|
|
variable "config_dir" {
|
2022-08-23 19:53:41 +00:00
|
|
|
default = null
|
|
|
|
}
|
2023-06-22 22:14:22 +00:00
|
|
|
|
2023-08-08 15:11:03 +00:00
|
|
|
variable "consul_log_level" {
|
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
2023-06-22 22:14:22 +00:00
|
|
|
variable "data_dir" {
|
2022-08-23 19:53:41 +00:00
|
|
|
default = null
|
|
|
|
}
|
2023-06-22 22:14:22 +00:00
|
|
|
|
|
|
|
variable "install_dir" {
|
2022-08-23 19:53:41 +00:00
|
|
|
default = null
|
|
|
|
}
|
2023-06-22 22:14:22 +00:00
|
|
|
|
|
|
|
variable "license" {
|
2022-08-23 19:53:41 +00:00
|
|
|
default = null
|
|
|
|
}
|
2023-06-22 22:14:22 +00:00
|
|
|
|
|
|
|
variable "log_dir" {
|
2022-08-23 19:53:41 +00:00
|
|
|
default = null
|
|
|
|
}
|
2023-06-22 22:14:22 +00:00
|
|
|
|
|
|
|
variable "log_level" {
|
2022-08-23 19:53:41 +00:00
|
|
|
default = null
|
|
|
|
}
|
2023-06-22 22:14:22 +00:00
|
|
|
|
|
|
|
variable "release" {
|
2022-08-23 19:53:41 +00:00
|
|
|
default = null
|
|
|
|
}
|
2023-06-22 22:14:22 +00:00
|
|
|
|
|
|
|
variable "target_hosts" {
|
2022-08-23 19:53:41 +00:00
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
2023-06-22 22:14:22 +00:00
|
|
|
output "private_ips" {
|
|
|
|
value = [for host in var.target_hosts : host.private_ip]
|
|
|
|
}
|
|
|
|
|
|
|
|
output "public_ips" {
|
|
|
|
value = [for host in var.target_hosts : host.public_ip]
|
|
|
|
}
|
|
|
|
|
|
|
|
output "target_hosts" {
|
|
|
|
value = var.target_hosts
|
2022-08-23 19:53:41 +00:00
|
|
|
}
|