-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make paths in e2e/terraform/ directory relative to the module #24664
Changes from 4 commits
0eea5d2
7caf9de
64a081b
2b27ff1
5be26f0
941c2cc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ resource "null_resource" "bootstrap_nomad_acls" { | |
|
||
data "local_sensitive_file" "nomad_token" { | ||
depends_on = [null_resource.bootstrap_nomad_acls] | ||
filename = "${path.root}/keys/nomad_root_token" | ||
filename = "${path.module}/keys/nomad_root_token" | ||
} | ||
|
||
# push the token out to the servers for humans to use. | ||
|
@@ -36,8 +36,8 @@ locals { | |
cat <<ENV | sudo tee -a /root/.bashrc | ||
export NOMAD_ADDR=https://localhost:4646 | ||
export NOMAD_SKIP_VERIFY=true | ||
export NOMAD_CLIENT_CERT=/etc/nomad.d/tls/agent.crt | ||
export NOMAD_CLIENT_KEY=/etc/nomad.d/tls/agent.key | ||
export NOMAD_CLIENT_CERT="${path.module}/etc/nomad.d/tls/agent.crt" | ||
export NOMAD_CLIENT_KEY="${path.module}/etc/nomad.d/tls/agent.key" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this path the path on the server, not the terraform environment? I don't think we want to change this. |
||
export NOMAD_TOKEN=${data.local_sensitive_file.nomad_token.content} | ||
export CONSUL_HTTP_ADDR=https://localhost:8501 | ||
export CONSUL_HTTP_TOKEN="${random_uuid.consul_initial_management_token.result}" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,14 +49,13 @@ output "environment" { | |
sensitive = true | ||
value = <<EOM | ||
export NOMAD_ADDR=https://${aws_instance.server[0].public_ip}:4646 | ||
export NOMAD_CACERT=${abspath(path.root)}/keys/tls_ca.crt | ||
export NOMAD_CLIENT_CERT=${abspath(path.root)}/keys/tls_api_client.crt | ||
export NOMAD_CLIENT_KEY=${abspath(path.root)}/keys/tls_api_client.key | ||
export NOMAD_CACERT=${abspath(path.module)}/keys/tls_ca.crt | ||
export NOMAD_CLIENT_CERT=${abspath(path.module)}/keys/tls_api_client.crt | ||
export NOMAD_CLIENT_KEY=${abspath(path.module)}/keys/tls_api_client.key | ||
export NOMAD_TOKEN=${data.local_sensitive_file.nomad_token.content} | ||
export NOMAD_E2E=1 | ||
export CONSUL_HTTP_ADDR=https://${aws_instance.consul_server.public_ip}:8501 | ||
export CONSUL_HTTP_TOKEN=${local_sensitive_file.consul_initial_management_token.content} | ||
export CONSUL_CACERT=${abspath(path.root)}/keys/tls_ca.crt | ||
|
||
export CONSUL_CACERT=${abspath(path.module)}/keys/tls_ca.crt | ||
EOM | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Trailing EOF |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,7 @@ | |
# 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"] | ||
nomad_local_binary = "/Users/juanita.delacuestamorales/nomad/linux-amd64-ce/nomad" | ||
#nomad_local_binary_client_windows_2016_amd64 = ["../../pkg/windows_amd64/nomad.exe"] | ||
nomad_license = "" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. trailing EOF |
||
consul_license = "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This filter was removed for testing, but should we restore it for the merge to main?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, my bad, they are commented for local testing