mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
* func: add module to upgrade clients * func: add polling to verify the metadata to make sure all clients are up * style: remove unused code * fix: Give the allocations a little time to get to the expected number on teh test health check, to avoid possible flaky tests in the future * fix: set the upgrade version as clients version for the last health check
51 lines
1.3 KiB
HCL
51 lines
1.3 KiB
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
variable "nomad_addr" {
|
|
description = "The Nomad API HTTP address of the instance being upgraded."
|
|
type = string
|
|
default = "http://localhost:4646"
|
|
}
|
|
|
|
variable "nomad_token" {
|
|
description = "The Secret ID of an ACL token to make requests with, for ACL-enabled clusters."
|
|
type = string
|
|
}
|
|
|
|
variable "platform" {
|
|
description = "Operating system of the instance to upgrade"
|
|
type = string
|
|
default = "linux"
|
|
}
|
|
|
|
variable "instance_address" {
|
|
description = "Public IP address of the instance that will be updated"
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_key_path" {
|
|
description = "Path to the ssh private key that can be used to connect to the instance where the server is running"
|
|
type = string
|
|
}
|
|
|
|
variable "artifactory_release" {
|
|
type = object({
|
|
username = string
|
|
token = string
|
|
url = string
|
|
sha256 = string
|
|
})
|
|
description = "The Artifactory release information to install Nomad artifacts from Artifactory"
|
|
default = null
|
|
}
|
|
|
|
variable "tls" {
|
|
type = object({
|
|
ca_file = string
|
|
cert_file = string
|
|
key_file = string
|
|
})
|
|
description = "Paths to tls keys and certificates for Nomad CLI"
|
|
default = null
|
|
}
|