open-nomad/dev/cluster/client2.hcl
Mahmood Ali 65fb8ba637 dev: Tweaks to cluster dev scripts
Consolidate all nomad data dir in a single root
`/tmp/nomad-dev-cluster`.  Eases clean up.

Allow running script from any path - don't require devs to cd into
`dev/cluster` directory first.

Also, block while nomad processes are running and prapogate
SIGTERM/SIGINT to nomad processes to shutdown.
2020-02-03 11:50:43 -05:00

35 lines
472 B
HCL

# Increase log verbosity
log_level = "DEBUG"
# Setup data dir
data_dir = "/tmp/nomad-dev-cluster/client2"
# Give the agent a unique name. Defaults to hostname
name = "client2"
# Enable debugging
enable_debug = true
# Enable the client
client {
enabled = true
server_join {
retry_join = ["127.0.0.1:4647", "127.0.0.1:5647", "127.0.0.1:6647"]
}
meta {
tag = "foo"
}
}
plugin "raw_exec" {
config {
enabled = true
}
}
ports {
http = 8646
}