Skip to content

Commit e0e7000

Browse files
committed
chore: set verify_https_client based on tls_http_enable
this ensures that if tls over http is disabled, then the end users are not required to produce TLS certificates for accessing nomad cluster using CLI Signed-off-by: Chinmay D. Pai <[email protected]>
1 parent 6fb6b0c commit e0e7000

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/nomad-clients/scripts/setup_client.tftpl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ tls {
200200
key_file = "global-client-nomad-key.pem"
201201
202202
verify_server_hostname = true
203-
verify_https_client = true
203+
verify_https_client = ${tls_http_enable}
204204
}
205205
EOF
206206
}

modules/nomad-servers/scripts/setup_server.tftpl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ tls {
136136
key_file = "global-server-nomad-key.pem"
137137
138138
verify_server_hostname = true
139-
verify_https_client = true
139+
verify_https_client = ${tls_http_enable}
140140
}
141141
EOF
142142
}

0 commit comments

Comments
 (0)