mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
In #23580 we're implementing support for encrypting Nomad's key material with external KMS providers or Vault Transit. This changeset breaks out the E2E infrastructure and testing from that PR to keep the review manageable. Ref: https://hashicorp.atlassian.net/browse/NET-10334 Ref: https://github.com/hashicorp/nomad/issues/14852 Ref: https://github.com/hashicorp/nomad/pull/23580
87 lines
1.9 KiB
HCL
87 lines
1.9 KiB
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
variable "nomad_local_binary" {
|
|
type = string
|
|
description = "Path to local Nomad build (ex. \"/home/me/bin/nomad\")"
|
|
default = ""
|
|
}
|
|
|
|
variable "nomad_license" {
|
|
type = string
|
|
description = "The enterprise license to use. overrides Nomad temporary license"
|
|
default = ""
|
|
}
|
|
|
|
variable "tls_ca_algorithm" {
|
|
type = string
|
|
description = "CA private key algorithm"
|
|
default = "ECDSA"
|
|
}
|
|
|
|
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 = ""
|
|
}
|
|
|
|
variable "arch" {
|
|
type = string
|
|
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"
|
|
}
|
|
|
|
variable "role" {
|
|
type = string
|
|
description = "The role for this instance (ex. 'client' or 'server')"
|
|
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 = ""
|
|
}
|
|
|
|
variable "instance" {
|
|
type = object({
|
|
id = string
|
|
public_dns = string
|
|
public_ip = string
|
|
private_dns = string
|
|
private_ip = string
|
|
})
|
|
}
|
|
|
|
variable "connection" {
|
|
type = object({
|
|
user = string
|
|
port = number
|
|
private_key = string
|
|
})
|
|
description = "ssh connection information for remote target"
|
|
}
|
|
|
|
variable "aws_region" {
|
|
type = string
|
|
default = "us-east-1"
|
|
}
|
|
|
|
variable "aws_kms_key_id" {
|
|
type = string
|
|
description = "AWS KMS key ID for encrypting and decrypting the Nomad keyring"
|
|
default = ""
|
|
}
|