2020-09-18 15:27:24 +00:00
|
|
|
variable "platform" {
|
|
|
|
type = string
|
|
|
|
description = "Platform ID (ex. \"linux_amd64\" or \"windows_amd64\")"
|
|
|
|
default = "linux_amd64"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "nomad_version" {
|
|
|
|
type = string
|
|
|
|
description = "Nomad release version (ex. \"0.10.3\")"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "nomad_sha" {
|
|
|
|
type = string
|
|
|
|
description = "Nomad build full SHA (ex. \"fef22bdbfa094b5d076710354275e360867261aa\")"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "nomad_local_binary" {
|
|
|
|
type = string
|
|
|
|
description = "Path to local Nomad build (ex. \"/home/me/bin/nomad\")"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:47:39 +00:00
|
|
|
variable "nomad_url" {
|
|
|
|
type = string
|
|
|
|
description = "URL to Nomad binary (ex. \"https://circleci.com/.../linux_amd64.zip\")"
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2021-03-25 18:35:55 +00:00
|
|
|
variable "nomad_license" {
|
|
|
|
type = string
|
|
|
|
description = "The enterprise license to use. overrides Nomad temporary license"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2020-09-28 13:22:36 +00:00
|
|
|
variable "nomad_acls" {
|
|
|
|
type = bool
|
|
|
|
description = "Bootstrap ACLs"
|
|
|
|
default = false
|
|
|
|
}
|
|
|
|
|
2021-08-30 14:18:16 +00:00
|
|
|
variable "tls" {
|
|
|
|
type = bool
|
|
|
|
description = "Bootstrap TLS"
|
|
|
|
default = false
|
|
|
|
}
|
|
|
|
|
|
|
|
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 = ""
|
|
|
|
}
|
|
|
|
|
2020-09-18 15:27:24 +00:00
|
|
|
variable "profile" {
|
|
|
|
type = string
|
|
|
|
description = "The name of the configuration profile (ex. 'full-cluster')"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "role" {
|
|
|
|
type = string
|
|
|
|
description = "The role in the configuration profile for this instance (ex. 'client-linux')"
|
|
|
|
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-02-01 02:32:18 +00:00
|
|
|
variable "cluster_name" {
|
|
|
|
type = string
|
|
|
|
description = "The random name assigned to the cluster"
|
|
|
|
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"
|
|
|
|
}
|