open-nomad/e2e/terraform/terraform.full.tfvars
Tim Gross 06c75460f3
e2e: provide precedence for version variables (#9216)
The `nomad_sha`, `nomad_version`, and `nomad_local_binary` variables for the
Nomad provisioning module assumed that only one would be set. By having the
override each other with an explicit precedence, it makes it easier to avoid
problems with Terraform's implicit variables behavior.

Set the expected default values in the `terraform.full.tfvars` to avoid
shadowing by any future changes to the `terraform.tfvars` file.

Update the Makefile to put the `-var` and `-var-file` in the correct order.
2020-10-29 09:15:22 -04:00

16 lines
674 B
HCL

region = "us-east-1"
instance_type = "t3.medium"
server_count = "3"
client_count_ubuntu_bionic_amd64 = "4"
client_count_windows_2016_amd64 = "1"
profile = "full-cluster"
nomad_enterprise = true
nomad_acls = true
vault = true
volumes = true
# required to avoid picking up defaults from terraform.tfvars file
nomad_version = "" # default version for deployment
nomad_sha = "" # overrides nomad_version if set
nomad_local_binary = "" # overrides nomad_sha and nomad_version if set