mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +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: rename variable in health test
44 lines
1.2 KiB
HCL
44 lines
1.2 KiB
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
variable "nomad_addr" {
|
|
description = "The Nomad API HTTP address."
|
|
type = string
|
|
default = "http://localhost:4646"
|
|
}
|
|
|
|
variable "ca_file" {
|
|
description = "A local file path to a PEM-encoded certificate authority used to verify the remote agent's certificate"
|
|
type = string
|
|
}
|
|
|
|
variable "cert_file" {
|
|
description = "A local file path to a PEM-encoded certificate provided to the remote agent. If this is specified, key_file or key_pem is also required"
|
|
type = string
|
|
}
|
|
|
|
variable "key_file" {
|
|
description = "A local file path to a PEM-encoded private key. This is required if cert_file or cert_pem is specified."
|
|
type = string
|
|
}
|
|
|
|
variable "nomad_token" {
|
|
description = "The Secret ID of an ACL token to make requests with, for ACL-enabled clusters."
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "workloads" {
|
|
description = "A map of workloads to provision"
|
|
|
|
type = map(object({
|
|
job_spec = string
|
|
alloc_count = number
|
|
}))
|
|
|
|
default = {
|
|
service_raw_exec = { job_spec = "jobs/raw-exec-service.nomad.hcl", alloc_count = 3 }
|
|
service_docker = { job_spec = "jobs/docker-service.nomad.hcl", alloc_count = 3 }
|
|
}
|
|
}
|