Skip to content

Commit

Permalink
chore: set verify_https_client based on tls_http_enable
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Thunderbottom committed Dec 12, 2023
1 parent 6fb6b0c commit e0e7000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/nomad-clients/scripts/setup_client.tftpl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ tls {
key_file = "global-client-nomad-key.pem"
verify_server_hostname = true
verify_https_client = true
verify_https_client = ${tls_http_enable}
}
EOF
}
Expand Down
2 changes: 1 addition & 1 deletion modules/nomad-servers/scripts/setup_server.tftpl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ tls {
key_file = "global-server-nomad-key.pem"
verify_server_hostname = true
verify_https_client = true
verify_https_client = ${tls_http_enable}
}
EOF
}
Expand Down

0 comments on commit e0e7000

Please sign in to comment.