mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix(examples/templates/nomad-docker): ignore NOMAD_NAMESPACE
and NOMAD_REGION
when Coder is running in nomad (#11341)
This commit is contained in:
@ -27,6 +27,12 @@ provider "coder" {}
|
|||||||
provider "nomad" {
|
provider "nomad" {
|
||||||
address = var.nomad_provider_address
|
address = var.nomad_provider_address
|
||||||
http_auth = var.nomad_provider_http_auth == "" ? null : var.nomad_provider_http_auth
|
http_auth = var.nomad_provider_http_auth == "" ? null : var.nomad_provider_http_auth
|
||||||
|
|
||||||
|
# Fix reading the NOMAD_NAMESPACE and the NOMAD_REGION env var from the coder's allocation.
|
||||||
|
ignore_env_vars = {
|
||||||
|
"NOMAD_NAMESPACE" = true
|
||||||
|
"NOMAD_REGION" = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data "coder_parameter" "cpu" {
|
data "coder_parameter" "cpu" {
|
||||||
|
Reference in New Issue
Block a user