2017-08-29 21:33:19 +00:00
|
|
|
# Increase log verbosity
|
|
|
|
log_level = "DEBUG"
|
|
|
|
|
|
|
|
region = "foo"
|
|
|
|
|
|
|
|
# Setup data dir
|
|
|
|
data_dir = "/tmp/client2"
|
|
|
|
|
|
|
|
# Enable the client
|
|
|
|
client {
|
|
|
|
enabled = true
|
|
|
|
|
|
|
|
# For demo assume we are talking to server1. For production,
|
|
|
|
# this should be like "nomad.service.consul:4647" and a system
|
|
|
|
# like Consul used for service discovery.
|
|
|
|
servers = ["127.0.0.1:4647"]
|
|
|
|
}
|
|
|
|
|
|
|
|
# Modify our port to avoid a collision with server1 and client1
|
|
|
|
ports {
|
|
|
|
http = 5657
|
|
|
|
}
|
|
|
|
|
|
|
|
tls {
|
|
|
|
http = true
|
|
|
|
rpc = true
|
|
|
|
|
2023-03-20 16:06:15 +00:00
|
|
|
ca_file = "certs/nomad-agent-ca.pem"
|
|
|
|
cert_file = "certs/foo-client-nomad.pem"
|
|
|
|
key_file = "certs/foo-client-nomad-key.pem"
|
2017-08-29 21:33:19 +00:00
|
|
|
|
|
|
|
verify_server_hostname = true
|
|
|
|
verify_https_client = true
|
|
|
|
}
|