Skip to content

Instantly share code, notes, and snippets.

@carnal0wnage
Created December 18, 2018 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carnal0wnage/4abde0ee31f4d730019e6fa04ef6d3b6 to your computer and use it in GitHub Desktop.
Save carnal0wnage/4abde0ee31f4d730019e6fa04ef6d3b6 to your computer and use it in GitHub Desktop.
simple client config for nomad
# Increase log verbosity
log_level = "DEBUG"
# Setup data dir
data_dir = "/tmp/client1"
# Give the agent a unique name. Defaults to hostname
name = "client1"
# 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"]
options {
"driver.raw_exec.enable" = "1"
}
}
# Modify our port to avoid a collision with server1
ports {
http = 5656
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment