mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
* func: add initial enos skeleton * style: add headers * func: change the variables input to a map of objects to simplify the workloads creation * style: formating * Add tests for servers and clients * style: separate the tests in diferent scripts * style: add missing headers * func: add tests for allocs * style: improve output * func: add step to copy remote upgrade version * style: hcl formatting * fix: remove the terraform nomad provider * fix: Add clean token to remove extra new line added in provision * fix: Add clean token to remove extra new line added in provision * fix: Add clean token to remove extra new line added in provision * fix: add missing license headers * style: hcl fmt * style: rename variables and fix format * func: remove the template step on the workloads module and chop the noamd token output on the provide module * fix: correct the jobspec path on the workloads module * fix: add missing variable definitions on job specs for workloads * style: formatting * fix: Add clean token to remove extra new line added in provision * func: add module to upgrade servers * style: missing headers * func: add upgrade module * func: add install for windows as well * func: add an intermediate module that runs the upgrade server for each server * fix: add missing license headers * fix: remove extra input variables and connect upgrade servers to the scenario * fix: rename missing env variables for cluster health scripts * func: move the cluster health test outside of the modules and into the upgrade scenario * fix: fix the regex to ignore snap files on the gitignore file * fix: Add clean token to remove extra new line added in provision * fix: Add clean token to remove extra new line added in provision * fix: Add clean token to remove extra new line added in provision * fix: remove extra input variables and connect upgrade servers to the scenario * style: formatting * fix: move taken and restoring snapshots out of the upgrade_single_server to avoid possible race conditions * fix: rename variable in health test * fix: Add clean token to remove extra new line added in provision * func: add an intermediate module that runs the upgrade server for each server * fix: Add clean token to remove extra new line added in provision * fix: Add clean token to remove extra new line added in provision * fix: Add clean token to remove extra new line added in provision * func: fix the last_log_index check and add a versions check * func: done use for_each when upgrading the servers, hardcodes each one to ensure they are upgraded one by one * Update enos/modules/upgrade_instance/variables.tf Co-authored-by: Tim Gross <tgross@hashicorp.com> * Update enos/modules/upgrade_instance/variables.tf Co-authored-by: Tim Gross <tgross@hashicorp.com> * Update enos/modules/upgrade_instance/variables.tf Co-authored-by: Tim Gross <tgross@hashicorp.com> * func: make snapshot by calling every server and allowing stale data * style: formatting * fix: make the source for the upgrade binary unknow until apply * func: use enos bundle to install remote upgrade version, enos_files is not meant for dynamic files --------- Co-authored-by: Tim Gross <tgross@hashicorp.com>
61 lines
1.5 KiB
HCL
61 lines
1.5 KiB
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
variable "artifactory_username" {
|
|
type = string
|
|
description = "The username to use when connecting to artifactory"
|
|
default = null
|
|
}
|
|
|
|
variable "artifactory_token" {
|
|
type = string
|
|
description = "The token to use when connecting to artifactory"
|
|
default = null
|
|
sensitive = true
|
|
}
|
|
|
|
variable "artifactory_host" {
|
|
type = string
|
|
description = "The artifactory host to search for Nomad artifacts"
|
|
default = "https://artifactory.hashicorp.engineering/artifactory"
|
|
}
|
|
|
|
variable "artifactory_repo" {
|
|
type = string
|
|
description = "The artifactory repo to search for Nomad artifacts"
|
|
default = "hashicorp-crt-staging-local*"
|
|
}
|
|
|
|
variable "edition" {
|
|
type = string
|
|
description = "The edition of the binary to search, it can be either CE or ENT"
|
|
}
|
|
|
|
variable "os" {
|
|
type = string
|
|
description = "The operative system the binary is needed for"
|
|
default = "linux"
|
|
}
|
|
|
|
variable "product_version" {
|
|
description = "The version of Nomad we are testing"
|
|
type = string
|
|
default = null
|
|
}
|
|
|
|
variable "arch" {
|
|
description = "The artifactory path to search for Nomad artifacts"
|
|
type = string
|
|
}
|
|
|
|
variable "binary_path" {
|
|
description = "The path to donwload and unzip the binary"
|
|
type = string
|
|
default = "/home/ubuntu/nomad"
|
|
}
|
|
|
|
variable "download_binary" {
|
|
description = "Used to control if the artifact should be downloaded to the local instance or not"
|
|
default = true
|
|
}
|