Skip to content

Commit

Permalink
E2E: remove references to nomad_sha
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed May 10, 2021
1 parent 490f393 commit ef0ebcd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
12 changes: 6 additions & 6 deletions e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ Run `terraform output` for IP addresses and details.

### ...Deploy a Cluster of Mixed Nomad Versions

The `variables.tf` file describes the `nomad_sha`, `nomad_version`, and
`nomad_local_binary` variable that can be used for most circumstances. But if
The `variables.tf` file describes the `nomad_version`, and
`nomad_local_binary` variables that can be used for most circumstances. But if
you want to deploy mixed Nomad versions, you can provide a list of versions in
your `terraform.tfvars` file.

Expand Down Expand Up @@ -111,7 +111,7 @@ Use the `"custom"` profile as described above.

### ...Change the Nomad Version After Provisioning

You can update the `nomad_sha` or `nomad_version` variables, or simply rebuild
the binary you have at the `nomad_local_binary` path so that Terraform picks
up the changes. Then run `terraform plan`/`terraform apply` again. This will
update Nomad in place, making the minimum amount of changes necessary.
You can update the `nomad_version` variable, or simply rebuild the binary you
have at the `nomad_local_binary` path so that Terraform picks up the
changes. Then run `terraform plan`/`terraform apply` again. This will update
Nomad in place, making the minimum amount of changes necessary.
12 changes: 3 additions & 9 deletions e2e/terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,13 @@ You'll need to pass one of the following variables in either your

* `nomad_local_binary`: provision this specific local binary of Nomad. This is
a path to a Nomad binary on your own host. Ex. `nomad_local_binary =
"/home/me/nomad"`. This setting overrides `nomad_sha` or `nomad_version`.
* `nomad_sha`: provision this specific sha from S3. This is a Nomad binary
identified by its full commit SHA that's stored in a shared s3 bucket that
Nomad team developers can access. That commit SHA can be from any branch
that's pushed to remote. Ex. `nomad_sha =
"0b6b475e7da77fed25727ea9f01f155a58481b6c"`. This setting overrides
`nomad_version`.
"/home/me/nomad"`. This setting overrides `nomad_version`.
* `nomad_version`: provision this version from
[releases.hashicorp.com](https://releases.hashicorp.com/nomad). Ex. `nomad_version
= "0.10.2+ent"`

If you want to deploy the Enterprise build of a specific SHA, include
`-var 'nomad_enterprise=true'`.
If you want to deploy the Enterprise build, include `-var
'nomad_enterprise=true'`.

If you want to bootstrap Nomad ACLs, include `-var 'nomad_acls=true'`.

Expand Down
7 changes: 5 additions & 2 deletions e2e/terraform/terraform.full.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ 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
nomad_local_binary = "" # overrides nomad_version if set

# The nightly E2E runner will set a nomad_sha flag; this should not be used
# outside of the nightly E2E runner and will usually fail because the build
# will not be available
8 changes: 5 additions & 3 deletions e2e/terraform/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ vault = true
volumes = false

nomad_version = "1.0.1" # default version for deployment
nomad_sha = "" # overrides nomad_version if set
nomad_local_binary = "" # overrides nomad_sha and nomad_version if set
nomad_local_binary = "" # overrides nomad_version if set

# Example overrides:
# nomad_sha = "38e23b62a7700c96f4898be777543869499fea0a"
# nomad_local_binary = "../../pkg/linux_amd64/nomad"
# nomad_local_binary_client_windows_2016_amd64 = ["../../pkg/windows_amd64/nomad.exe"]

# The nightly E2E runner will set a nomad_sha flag; this should not be used
# outside of the nightly E2E runner and will usually fail because the build
# will not be available
2 changes: 1 addition & 1 deletion e2e/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ variable "profile" {
# nomad_sha, nomad_version, or nomad_local_binary is set

variable "nomad_sha" {
description = "The sha of Nomad to provision"
description = "The sha of Nomad to provision; only used for automated nightly testing"
default = ""
}

Expand Down

0 comments on commit ef0ebcd

Please sign in to comment.