Skip to content

Commit

Permalink
func: update paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanadelacuesta committed Dec 17, 2024
1 parent dc29bdb commit 77148be
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 161 deletions.
157 changes: 0 additions & 157 deletions e2e/terraform/.terraform.lock.hcl

This file was deleted.

15 changes: 15 additions & 0 deletions e2e/terraform/csi/input/volume-efs.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
type = "csi"
id = "efs-vol0"
name = "efs-vol0"
external_id = "fs-04c1d811ee34b324b"
plugin_id = "aws-efs0"

capability {
access_mode = "single-node-writer"
attachment_mode = "file-system"
}

capability {
access_mode = "single-node-reader"
attachment_mode = "file-system"
}
2 changes: 2 additions & 0 deletions e2e/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ module "provision-infra" {
client_count_linux = var.client_count_linux
client_count_windows_2016_amd64 = var.client_count_windows_2016_amd64
nomad_local_binary = var.nomad_local_binary
nomad_license = var.nomad_license
consul_license = var.consul_license
}
2 changes: 1 addition & 1 deletion e2e/terraform/provision-infra/nomad-acls.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "null_resource" "bootstrap_nomad_acls" {
depends_on = [module.nomad_server, null_resource.bootstrap_consul_acls]

provisioner "local-exec" {
command = "./scripts/bootstrap-nomad.sh"
command = "${path.module}/scripts/bootstrap-nomad.sh"
environment = {
NOMAD_ADDR = "https://${aws_instance.server.0.public_ip}:4646"
NOMAD_CACERT = "${path.root}/keys/tls_ca.crt"
Expand Down
1 change: 1 addition & 0 deletions e2e/terraform/provision-infra/nomad.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ module "nomad_client_windows_2016_amd64" {
instance = aws_instance.client_windows_2016_amd64[count.index]

nomad_region = var.nomad_region
nomad_license = var.nomad_license
nomad_local_binary = count.index < length(var.nomad_local_binary_client_windows_2016_amd64) ? var.nomad_local_binary_client_windows_2016_amd64[count.index] : ""

tls_ca_key = tls_private_key.ca.private_key_pem
Expand Down
3 changes: 0 additions & 3 deletions e2e/terraform/provision-infra/provision-nomad/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ variable "nomad_local_binary" {
variable "nomad_license" {
type = string
description = "The enterprise license to use. overrides Nomad temporary license"
default = ""
}

variable "tls_ca_algorithm" {
Expand All @@ -28,13 +27,11 @@ variable "tls_ca_algorithm" {
variable "tls_ca_key" {
type = string
description = "Cluster TLS CA private key"
default = ""
}

variable "tls_ca_cert" {
type = string
description = "Cluster TLS CA cert"
default = ""
}

variable "arch" {
Expand Down
4 changes: 4 additions & 0 deletions e2e/terraform/provision-infra/scripts/bootstrap-nomad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ while true :
do
ROOT_TOKEN=$(nomad acl bootstrap | awk '/Secret ID/{print $4}')
if [ ! -z $ROOT_TOKEN ]; then break; fi
echo NOMAD_ADDR = $NOMAD_ADDR
echo NOMAD_CACERT = $NOMAD_CACERT
echo NOMAD_CLIENT_CERT = $NOMAD_CLIENT_CERT
echo NOMAD_CLIENT_KEY = $NOMAD_CLIENT_KEY
sleep 5
done
set -e
Expand Down
2 changes: 2 additions & 0 deletions e2e/terraform/remotetasks/input/ecs.vars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
security_groups = ["sg-0ed9eef003515cd1d"]
subnets = ["subnet-d5c50df4"]

0 comments on commit 77148be

Please sign in to comment.