Update some details of the terraform readme file for e2e provisioning (#24451)

* docs: update instructions to provision e2e cluster

* Update e2e/terraform/README.md

Co-authored-by: Piotr Kazmierczak <470696+pkazmierczak@users.noreply.github.com>

* Update e2e/terraform/terraform.tfvars

Co-authored-by: Piotr Kazmierczak <470696+pkazmierczak@users.noreply.github.com>

* Update e2e/terraform/README.md

Co-authored-by: Piotr Kazmierczak <470696+pkazmierczak@users.noreply.github.com>

---------

Co-authored-by: Piotr Kazmierczak <470696+pkazmierczak@users.noreply.github.com>
This commit is contained in:
Juana De La Cuesta
2024-11-18 13:36:51 +01:00
committed by GitHub
parent 1f944196d9
commit 270b4f97a6
2 changed files with 14 additions and 11 deletions

View File

@@ -55,18 +55,26 @@ client_count_ubuntu_jammy_amd64 = "4"
client_count_windows_2016_amd64 = "1"
```
You will also need a Consul Enterprise license file.
You will also need a Consul Enterprise license file and a Nomad Enterprise license file.
Optionally, edit the `nomad_local_binary` variable in the
`terraform.tfvars` file to change the path to the local binary of
Nomad you'd like to upload.
Nomad you'd like to upload, but keep in mind it has to match the OS and the CPU architecture of the nodes (amd64 linux).
Run Terraform apply to deploy the infrastructure:
```sh
cd e2e/terraform/
terraform init
terraform apply
terraform apply -var="consul_license=$(cat full_path_to_consul.hclic)" -var="nomad_license=$(cat full_path_to_nomad.hclic)"
```
Alternative you can also run `make apply_full` from the terraform directory:
```
export NOMAD_LICENSE_PATH=./nomad.hclic
export CONSUL_LICENSE_PATH=./consul.hclic
make apply_full
```
> Note: You will likely see "Connection refused" or "Permission denied" errors

View File

@@ -3,13 +3,8 @@
# this default tfvars file expects that you have built nomad
# with `make dev` or similar (../../ = this repository root)
# before running `terraform apply`
# before running `terraform apply` and created the /pkg/goos_goarch/binary
# folder
nomad_local_binary = "../../pkg/linux_amd64/nomad"
nomad_local_binary_client_windows_2016_amd64 = ["../../pkg/windows_amd64/nomad.exe"]
# The Consul server is Consul Enterprise, so provide a license via --var:
# consul_license = <content of Consul license>
# For testing Nomad enterprise, also set via --var:
# nomad_license = <content of Nomad license>
nomad_local_binary_client_windows_2016_amd64 = ["../../pkg/windows_amd64/nomad.exe"]