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."
|
|
|
|
default = "us-east-1a"
|
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2020-10-28 16:58:00 +00:00
|
|
|
variable "client_count_ubuntu_bionic_amd64" {
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "aws_assume_role_arn" {
|
|
|
|
description = "The AWS IAM role to assume (not used by human users)"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "aws_assume_role_session_name" {
|
|
|
|
description = "The AWS IAM session name to assume (not used by human users)"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "aws_assume_role_external_id" {
|
|
|
|
description = "The AWS IAM external ID to assume (not used by human users)"
|
|
|
|
default = ""
|
|
|
|
}
|
2020-09-18 15:27:24 +00:00
|
|
|
|
|
|
|
variable "profile" {
|
|
|
|
description = "A default Nomad/Consul/Vault configuration profile"
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
# ----------------------------------------
|
|
|
|
# The specific version of Nomad deployed will default to whichever one of
|
|
|
|
# nomad_sha, nomad_version, or nomad_local_binary is set
|
|
|
|
|
|
|
|
variable "nomad_sha" {
|
|
|
|
description = "The sha of Nomad to provision"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "nomad_version" {
|
|
|
|
description = "The release version of Nomad to provision"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "nomad_local_binary" {
|
|
|
|
description = "The path to a local binary to provision"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2020-09-23 14:39:04 +00:00
|
|
|
variable "nomad_enterprise" {
|
|
|
|
type = bool
|
|
|
|
description = "If nomad_sha is used, deploy Nomad Enterprise"
|
|
|
|
default = false
|
|
|
|
}
|
2020-09-28 13:22:36 +00:00
|
|
|
|
|
|
|
variable "nomad_acls" {
|
|
|
|
type = bool
|
|
|
|
description = "Bootstrap ACLs"
|
|
|
|
default = false
|
|
|
|
}
|
|
|
|
|
2020-10-05 13:28:37 +00:00
|
|
|
variable "vault" {
|
|
|
|
type = bool
|
|
|
|
description = "Bootstrap Vault"
|
|
|
|
default = false
|
|
|
|
}
|
|
|
|
|
2020-10-14 14:29:33 +00:00
|
|
|
variable "volumes" {
|
|
|
|
type = bool
|
|
|
|
description = "Include external EBS and EFS volumes (for CSI)"
|
|
|
|
default = false
|
|
|
|
}
|
|
|
|
|
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_version_server" {
|
|
|
|
description = "A list of Nomad versions to deploy to servers, to override nomad_version"
|
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "nomad_sha_server" {
|
|
|
|
description = "A list of Nomad SHAs to deploy to servers, to override nomad_sha"
|
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "nomad_local_binary_server" {
|
|
|
|
description = "A list of Nomad SHAs to deploy to servers, to override nomad_sha"
|
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
2020-10-28 16:58:00 +00:00
|
|
|
variable "nomad_version_client_ubuntu_bionic_amd64" {
|
|
|
|
description = "A list of Nomad versions to deploy to Ubuntu Bionic clients, to override nomad_version"
|
2020-09-18 15:27:24 +00:00
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
2020-10-28 16:58:00 +00:00
|
|
|
variable "nomad_sha_client_ubuntu_bionic_amd64" {
|
|
|
|
description = "A list of Nomad SHAs to deploy to Ubuntu Bionic clients, to override nomad_sha"
|
2020-09-18 15:27:24 +00:00
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
2020-10-28 16:58:00 +00:00
|
|
|
variable "nomad_local_binary_client_ubuntu_bionic_amd64" {
|
|
|
|
description = "A list of Nomad SHAs to deploy to Ubuntu Bionic clients, to override nomad_sha"
|
2020-09-18 15:27:24 +00:00
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
2020-10-28 16:58:00 +00:00
|
|
|
variable "nomad_version_client_windows_2016_amd64" {
|
|
|
|
description = "A list of Nomad versions to deploy to Windows 2016 clients, to override nomad_version"
|
2020-09-18 15:27:24 +00:00
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
2020-10-28 16:58:00 +00:00
|
|
|
variable "nomad_sha_client_windows_2016_amd64" {
|
|
|
|
description = "A list of Nomad SHAs to deploy to Windows 2016 clients, to override nomad_sha"
|
2020-09-18 15:27:24 +00:00
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
2020-10-28 16:58:00 +00:00
|
|
|
variable "nomad_local_binary_client_windows_2016_amd64" {
|
|
|
|
description = "A list of Nomad SHAs to deploy to Windows 2016 clients, to override nomad_sha"
|
2020-09-18 15:27:24 +00:00
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|