2023-03-15 16:00:52 +00:00
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
2022-10-17 23:47:37 +00:00
variable "artifactory_username" {
type = string
2023-07-20 20:51:07 +00:00
description = "The username to use when testing an artifact from artifactory"
2022-10-17 23:47:37 +00:00
default = null
sensitive = true
}
variable "artifactory_token" {
type = string
2023-07-20 20:51:07 +00:00
description = "The token to use when authenticating to artifactory"
2022-10-17 23:47:37 +00:00
default = null
sensitive = true
}
variable "artifactory_host" {
type = string
description = "The artifactory host to search for vault artifacts"
default = "https://artifactory.hashicorp.engineering/artifactory"
}
variable "artifactory_repo" {
type = string
description = "The artifactory repo to search for vault artifacts"
default = "hashicorp-crt-stable-local*"
}
2022-08-23 19:53:41 +00:00
variable "aws_region" {
description = "The AWS region where we'll create infrastructure"
type = string
2023-07-20 20:51:07 +00:00
default = "us-east-1"
2022-08-23 19:53:41 +00:00
}
variable "aws_ssh_keypair_name" {
description = "The AWS keypair to use for SSH"
type = string
default = "enos-ci-ssh-key"
}
variable "aws_ssh_private_key_path" {
description = "The path to the AWS keypair private key"
type = string
default = "./support/private_key.pem"
}
variable "backend_edition" {
description = "The backend release edition if applicable"
type = string
2023-08-08 15:11:03 +00:00
default = "oss" // or "ent"
2022-08-23 19:53:41 +00:00
}
variable "backend_instance_type" {
2023-06-22 22:14:22 +00:00
description = "The instance type to use for the Vault backend. Must be arm64/nitro compatible"
2023-08-18 16:30:36 +00:00
type = string
default = "t4g.small"
2022-08-23 19:53:41 +00:00
}
variable "backend_license_path" {
description = "The license for the backend if applicable (Consul Enterprise)"
type = string
default = null
}
2023-06-14 18:39:10 +00:00
variable "backend_log_level" {
description = "The server log level for the backend. Supported values include 'trace', 'debug', 'info', 'warn', 'error'"
type = string
default = "trace"
}
2022-08-23 19:53:41 +00:00
variable "project_name" {
description = "The description of the project"
type = string
default = "vault-enos-integration"
}
2023-06-22 22:14:22 +00:00
variable "rhel_distro_version" {
description = "The version of RHEL to use"
type = string
default = "9.1" // or "8.8"
}
2022-08-23 19:53:41 +00:00
variable "tags" {
description = "Tags that will be applied to infrastructure resources that support tagging"
type = map ( string )
default = null
}
variable "terraform_plugin_cache_dir" {
description = "The directory to cache Terraform modules and providers"
type = string
default = null
}
variable "tfc_api_token" {
2023-07-20 20:51:07 +00:00
description = "The Terraform Cloud QTI Organization API token. This is used to download the enos Terraform provider."
2022-08-23 19:53:41 +00:00
type = string
2022-10-17 23:47:37 +00:00
sensitive = true
}
2023-06-22 22:14:22 +00:00
variable "ubuntu_distro_version" {
description = "The version of ubuntu to use"
type = string
default = "22.04" // or "20.04", "18.04"
}
2023-07-20 20:51:07 +00:00
variable "ui_test_filter" {
type = string
description = "A test filter to limit the ui tests to execute. Will be appended to the ember test command as '-f = \ "<filter>\"'"
default = null
}
variable "ui_run_tests" {
type = bool
description = "Whether to run the UI tests or not. If set to false a cluster will be created but no tests will be run"
default = true
}
2022-10-17 23:47:37 +00:00
variable "vault_artifact_type" {
2023-07-20 20:51:07 +00:00
description = "The type of Vault artifact to use when installing Vault from artifactory. It should be 'package' for .deb or # .rpm package and 'bundle' for .zip bundles"
2022-10-17 23:47:37 +00:00
default = "bundle"
2022-08-23 19:53:41 +00:00
}
variable "vault_autopilot_initial_release" {
description = "The Vault release to deploy before upgrading with autopilot"
default = {
edition = "ent"
version = "1.11.0"
}
}
2023-07-20 20:51:07 +00:00
variable "vault_artifact_path" {
2022-08-23 19:53:41 +00:00
description = "Path to CRT generated or local vault.zip bundle"
type = string
default = "/tmp/vault.zip"
}
2023-07-20 20:51:07 +00:00
variable "vault_build_date" {
description = "The build date for Vault artifact"
2022-08-23 19:53:41 +00:00
type = string
2023-07-20 20:51:07 +00:00
default = ""
2022-08-23 19:53:41 +00:00
}
2023-07-20 20:51:07 +00:00
variable "vault_enable_file_audit_device" {
description = "If true the file audit device will be enabled at the path /var/log/vault_audit.log"
type = bool
default = true
}
variable "vault_install_dir" {
2022-08-23 19:53:41 +00:00
type = string
2023-07-20 20:51:07 +00:00
description = "The directory where the Vault binary will be installed"
default = "/opt/vault/bin"
2022-08-23 19:53:41 +00:00
}
variable "vault_instance_count" {
description = "How many instances to create for the Vault cluster"
type = number
default = 3
}
variable "vault_license_path" {
description = "The path to a valid Vault enterprise edition license. This is only required for non-oss editions"
type = string
default = null
}
variable "vault_local_build_tags" {
description = "The build tags to pass to the Go compiler for builder:local variants"
type = list ( string )
default = null
}
2023-02-08 22:41:16 +00:00
variable "vault_log_level" {
description = "The server log level for Vault logs. Supported values (in order of detail) are trace, debug, info, warn, and err."
type = string
2023-06-14 18:39:10 +00:00
default = "trace"
2023-02-08 22:41:16 +00:00
}
2022-10-04 20:08:26 +00:00
variable "vault_product_version" {
description = "The version of Vault we are testing"
type = string
default = null
}
variable "vault_revision" {
description = "The git sha of Vault artifact we are testing"
type = string
default = null
}
2022-08-23 19:53:41 +00:00
variable "vault_upgrade_initial_release" {
description = "The Vault release to deploy before upgrading"
default = {
edition = "oss"
2022-10-04 20:08:26 +00:00
/ / Vault 1 . 10 . 5 has a known issue with retry_join .
2022-08-23 19:53:41 +00:00
version = "1.10.4"
}
}