Skip to content

Instantly share code, notes, and snippets.

@ryanpadilha
Last active November 28, 2017 16:09
Show Gist options
  • Save ryanpadilha/4f8bfd75c0e48c8f773882165e22cbc7 to your computer and use it in GitHub Desktop.
Save ryanpadilha/4f8bfd75c0e48c8f773882165e22cbc7 to your computer and use it in GitHub Desktop.
HashiCorp Nomad - Server Cluster
# server-cluster-nomad.hcl for AWS
#
# define to start an agent in server mode and elect as a leader
# will manage state and make scheduling decisions
#
# Download this file:
# curl -sSL https://gist.githubusercontent.com/ryanpadilha/4f8bfd75c0e48c8f773882165e22cbc7/raw/ -o server-cluster-nomad.hcl
#
# $ nomad agent -config=/var/wplex/devops/nomad-hashicorp/server-cluster-nomad.hcl
bind_addr = "192.168.2.68" # "0.0.0.0" # the default
# increase log verbosity
log_level = "DEBUG"
# setup data dir
data_dir = "/var/wplex/devops/nomad-hashicorp"
# enable the server
server {
enabled = true
# self-elect, should be 3 or 5 for production
bootstrap_expect = 1
}
# consul {
# address = "1.2.3.4:8500"
# }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment