diff --git a/e2e/terraform/README.md b/e2e/terraform/README.md index b7d77a22b..a57856545 100644 --- a/e2e/terraform/README.md +++ b/e2e/terraform/README.md @@ -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 diff --git a/e2e/terraform/terraform.tfvars b/e2e/terraform/terraform.tfvars index 324bb7c7c..cb270665a 100644 --- a/e2e/terraform/terraform.tfvars +++ b/e2e/terraform/terraform.tfvars @@ -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 = - -# For testing Nomad enterprise, also set via --var: -# nomad_license = +nomad_local_binary_client_windows_2016_amd64 = ["../../pkg/windows_amd64/nomad.exe"] \ No newline at end of file