@@ -26,16 +26,16 @@ Then you can run tests from the e2e directory with:
26
26
ssh into servers with:
27
27
28
28
%{ for ip in aws_instance . server . * . public_ip ~}
29
- ssh -i keys/${ local . random_name } .pem ubuntu@${ ip }
29
+ ssh -i keys/${ local . random_name } / ${ local . random_name } .pem ubuntu@${ ip }
30
30
%{ endfor ~}
31
31
32
32
ssh into clients with:
33
33
34
34
%{ for ip in aws_instance . client_ubuntu_jammy . * . public_ip ~}
35
- ssh -i keys/${ local . random_name } .pem ubuntu@${ ip }
35
+ ssh -i keys/${ local . random_name } / ${ local . random_name } .pem ubuntu@${ ip }
36
36
%{ endfor ~}
37
37
%{ for ip in aws_instance . client_windows_2016 . * . public_ip ~}
38
- ssh -i keys/${ local . random_name } .pem Administrator@${ ip }
38
+ ssh -i keys/${ local . random_name } / ${ local . random_name } .pem Administrator@${ ip }
39
39
%{ endfor ~}
40
40
41
41
EOM
@@ -49,14 +49,14 @@ output "environment" {
49
49
sensitive = true
50
50
value = << EOM
51
51
export NOMAD_ADDR=https://${ aws_instance . server [0 ]. public_ip } :4646
52
- export NOMAD_CACERT=${ abspath (path . module ) } /keys /tls_ca.crt
53
- export NOMAD_CLIENT_CERT=${ abspath (path . module ) } /keys /tls_api_client.crt
54
- export NOMAD_CLIENT_KEY=${ abspath (path . module ) } /keys /tls_api_client.key
52
+ export NOMAD_CACERT=${ abspath (local . keys_dir ) } /tls_ca.crt
53
+ export NOMAD_CLIENT_CERT=${ abspath (local . keys_dir ) } /tls_api_client.crt
54
+ export NOMAD_CLIENT_KEY=${ abspath (local . keys_dir ) } /tls_api_client.key
55
55
export NOMAD_TOKEN=${ data . local_sensitive_file . nomad_token . content }
56
56
export NOMAD_E2E=1
57
57
export CONSUL_HTTP_ADDR=https://${ aws_instance . consul_server . public_ip } :8501
58
58
export CONSUL_HTTP_TOKEN=${ local_sensitive_file . consul_initial_management_token . content }
59
- export CONSUL_CACERT=${ abspath (path . module ) } /keys /tls_ca.crt
59
+ export CONSUL_CACERT=${ abspath (local . keys_dir ) } /tls_ca.crt
60
60
EOM
61
61
}
62
62
@@ -65,15 +65,15 @@ output "nomad_addr" {
65
65
}
66
66
67
67
output "ca_file" {
68
- value = " ${ abspath (path . module ) } /keys /tls_ca.crt"
68
+ value = " ${ abspath (local . keys_dir ) } /tls_ca.crt"
69
69
}
70
70
71
71
output "cert_file" {
72
- value = " ${ abspath (path . module ) } /keys /tls_api_client.crt"
72
+ value = " ${ abspath (local . keys_dir ) } /tls_api_client.crt"
73
73
}
74
74
75
75
output "key_file" {
76
- value = " ${ abspath (path . module ) } /keys /tls_api_client.key"
76
+ value = " ${ abspath (local . keys_dir ) } /tls_api_client.key"
77
77
}
78
78
79
79
output "nomad_token" {
0 commit comments