2020-08-26 21:00:36 +00:00
|
|
|
variable "name" {
|
|
|
|
description = "Used to name various infrastructure components"
|
|
|
|
default = "nomad-e2e"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "region" {
|
|
|
|
description = "The AWS region to deploy to."
|
|
|
|
default = "us-east-1"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "availability_zone" {
|
|
|
|
description = "The AWS availability zone to deploy to."
|
2022-03-01 15:15:46 +00:00
|
|
|
default = "us-east-1b"
|
2020-08-26 21:00:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "instance_type" {
|
|
|
|
description = "The AWS instance type to use for both clients and servers."
|
|
|
|
default = "t2.medium"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "server_count" {
|
|
|
|
description = "The number of servers to provision."
|
|
|
|
default = "3"
|
|
|
|
}
|
|
|
|
|
2022-11-16 16:37:18 +00:00
|
|
|
variable "client_count_ubuntu_jammy_amd64" {
|
2020-10-28 16:58:00 +00:00
|
|
|
description = "The number of Ubuntu clients to provision."
|
2020-08-26 21:00:36 +00:00
|
|
|
default = "4"
|
|
|
|
}
|
|
|
|
|
2020-10-28 16:58:00 +00:00
|
|
|
variable "client_count_windows_2016_amd64" {
|
|
|
|
description = "The number of windows 2016 clients to provision."
|
2020-08-26 21:00:36 +00:00
|
|
|
default = "1"
|
|
|
|
}
|
|
|
|
|
2021-06-04 14:04:45 +00:00
|
|
|
variable "restrict_ingress_cidrblock" {
|
|
|
|
description = "Restrict ingress traffic to cluster to invoker ip address"
|
|
|
|
type = bool
|
|
|
|
default = true
|
|
|
|
}
|
|
|
|
|
2020-09-18 15:27:24 +00:00
|
|
|
# ----------------------------------------
|
|
|
|
# The specific version of Nomad deployed will default to whichever one of
|
|
|
|
# nomad_sha, nomad_version, or nomad_local_binary is set
|
|
|
|
|
|
|
|
variable "nomad_local_binary" {
|
|
|
|
description = "The path to a local binary to provision"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2021-03-25 18:35:55 +00:00
|
|
|
variable "nomad_license" {
|
|
|
|
type = string
|
|
|
|
description = "If nomad_license is set, deploy a license to override the temporary license"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2022-03-18 13:27:28 +00:00
|
|
|
variable "volumes" {
|
2020-09-28 13:22:36 +00:00
|
|
|
type = bool
|
2022-03-18 13:27:28 +00:00
|
|
|
description = "Include external EFS volumes (for CSI)"
|
|
|
|
default = true
|
2020-09-28 13:22:36 +00:00
|
|
|
}
|
|
|
|
|
2022-03-18 13:27:28 +00:00
|
|
|
variable "hcp_consul_cluster_id" {
|
|
|
|
description = "The ID of the HCP Consul cluster"
|
|
|
|
type = string
|
|
|
|
default = "nomad-e2e-shared-hcp-consul"
|
2021-08-30 14:18:16 +00:00
|
|
|
}
|
|
|
|
|
2022-03-18 13:27:28 +00:00
|
|
|
variable "hcp_vault_cluster_id" {
|
|
|
|
description = "The ID of the HCP Vault cluster"
|
|
|
|
type = string
|
|
|
|
default = "nomad-e2e-shared-hcp-vault"
|
2020-10-05 13:28:37 +00:00
|
|
|
}
|
|
|
|
|
2022-03-18 13:27:28 +00:00
|
|
|
variable "hcp_vault_namespace" {
|
|
|
|
description = "The namespace where the HCP Vault cluster policy works"
|
|
|
|
type = string
|
|
|
|
default = "admin"
|
2020-10-14 14:29:33 +00:00
|
|
|
}
|
|
|
|
|
2020-09-18 15:27:24 +00:00
|
|
|
# ----------------------------------------
|
|
|
|
# If you want to deploy multiple versions you can use these variables to
|
|
|
|
# provide a list of builds to override the values of nomad_sha, nomad_version,
|
|
|
|
# or nomad_local_binary. Most of the time you can ignore these variables!
|
|
|
|
|
|
|
|
variable "nomad_local_binary_server" {
|
2021-05-25 17:47:39 +00:00
|
|
|
description = "A list of nomad local binary paths to deploy to servers, to override nomad_local_binary"
|
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
2022-11-16 16:37:18 +00:00
|
|
|
variable "nomad_local_binary_client_ubuntu_jammy_amd64" {
|
|
|
|
description = "A list of nomad local binary paths to deploy to Ubuntu Jammy clients, to override nomad_local_binary"
|
2021-05-25 17:47:39 +00:00
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
2020-10-28 16:58:00 +00:00
|
|
|
variable "nomad_local_binary_client_windows_2016_amd64" {
|
2021-05-25 17:47:39 +00:00
|
|
|
description = "A list of nomad local binary paths to deploy to Windows 2016 clients, to override nomad_local_binary"
|
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|