2020-09-18 15:27:24 +00:00
|
|
|
variable "nomad_local_binary" {
|
|
|
|
type = string
|
|
|
|
description = "Path to local Nomad build (ex. \"/home/me/bin/nomad\")"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2021-03-25 18:35:55 +00:00
|
|
|
variable "nomad_license" {
|
|
|
|
type = string
|
|
|
|
description = "The enterprise license to use. overrides Nomad temporary license"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2022-03-18 13:27:28 +00:00
|
|
|
variable "tls_ca_algorithm" {
|
|
|
|
type = string
|
|
|
|
description = "CA private key algorithm"
|
|
|
|
default = "ECDSA"
|
2021-08-30 14:18:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "tls_ca_key" {
|
|
|
|
type = string
|
|
|
|
description = "Cluster TLS CA private key"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "tls_ca_cert" {
|
|
|
|
type = string
|
|
|
|
description = "Cluster TLS CA cert"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2022-03-18 13:27:28 +00:00
|
|
|
variable "arch" {
|
2020-09-18 15:27:24 +00:00
|
|
|
type = string
|
2022-03-18 13:27:28 +00:00
|
|
|
description = "The architecture for this instance (ex. 'linux_amd64' or 'windows_amd64')"
|
|
|
|
default = "linux_amd64"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "platform" {
|
|
|
|
type = string
|
|
|
|
description = "The platform for this instance (ex. 'windows' or 'linux')"
|
|
|
|
default = "linux"
|
2020-09-18 15:27:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "role" {
|
|
|
|
type = string
|
2022-03-18 13:27:28 +00:00
|
|
|
description = "The role for this instance (ex. 'client' or 'server')"
|
2020-09-18 15:27:24 +00:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "index" {
|
|
|
|
type = string # note that we have string here so we can default to ""
|
|
|
|
description = "The count of this instance for indexed configurations"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2021-08-30 14:18:16 +00:00
|
|
|
variable "instance" {
|
|
|
|
type = object({
|
|
|
|
id = string
|
|
|
|
public_dns = string
|
|
|
|
public_ip = string
|
|
|
|
private_dns = string
|
|
|
|
private_ip = string
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2020-09-18 15:27:24 +00:00
|
|
|
variable "connection" {
|
|
|
|
type = object({
|
|
|
|
user = string
|
|
|
|
port = number
|
|
|
|
private_key = string
|
|
|
|
})
|
|
|
|
description = "ssh connection information for remote target"
|
|
|
|
}
|