Last active
September 20, 2018 13:30
-
-
Save remilapeyre/c058649780d40b5566016e8e880291da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data_dir = "/var/lib/nomad" | |
bind_addr = "0.0.0.0" # the default | |
advertise { | |
# Defaults to the first private IP address. | |
http = "1.2.3.4" | |
rpc = "1.2.3.4" | |
serf = "1.2.3.4:5648" # non-default ports may be specified | |
} | |
server { | |
enabled = true | |
bootstrap_expect = 3 | |
} | |
client { | |
enabled = true | |
network_speed = 10 | |
options { | |
"driver.raw_exec.enable" = "1" | |
} | |
} | |
consul { | |
address = "1.2.3.4:8500" | |
} | |
defaults { | |
# This will define the restart stanza of any job | |
# that does not define it, allowing restart behavior | |
# to be defined at the cluster level. | |
restart { | |
attempts = 6 | |
delay = "10s" | |
} | |
# If this is set to true, jobs cannot override the defaults | |
# defined here in their job specification. You can set this | |
# flag to false if you wish to let some jobs have a special | |
# configuration. | |
force_defaults = true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment