2016-03-12 02:24:58 +00:00
|
|
|
region = "foobar"
|
|
|
|
datacenter = "dc2"
|
|
|
|
name = "my-web"
|
|
|
|
data_dir = "/tmp/nomad"
|
|
|
|
log_level = "ERR"
|
|
|
|
bind_addr = "192.168.0.1"
|
|
|
|
enable_debug = true
|
|
|
|
ports {
|
|
|
|
http = 1234
|
|
|
|
rpc = 2345
|
|
|
|
serf = 3456
|
|
|
|
}
|
|
|
|
addresses {
|
|
|
|
http = "127.0.0.1"
|
|
|
|
rpc = "127.0.0.2"
|
|
|
|
serf = "127.0.0.3"
|
|
|
|
}
|
|
|
|
advertise {
|
|
|
|
rpc = "127.0.0.3"
|
|
|
|
serf = "127.0.0.4"
|
|
|
|
}
|
|
|
|
client {
|
|
|
|
enabled = true
|
|
|
|
state_dir = "/tmp/client-state"
|
|
|
|
alloc_dir = "/tmp/alloc"
|
|
|
|
servers = ["a.b.c:80", "127.0.0.1:1234"]
|
|
|
|
node_class = "linux-medium-64bit"
|
|
|
|
meta {
|
|
|
|
foo = "bar"
|
|
|
|
baz = "zip"
|
|
|
|
}
|
|
|
|
options {
|
|
|
|
foo = "bar"
|
|
|
|
baz = "zip"
|
|
|
|
}
|
2016-08-04 22:03:56 +00:00
|
|
|
chroot_env {
|
|
|
|
"/opt/myapp/etc" = "/etc"
|
|
|
|
"/opt/myapp/bin" = "/bin"
|
|
|
|
}
|
2016-03-12 02:24:58 +00:00
|
|
|
network_interface = "eth0"
|
|
|
|
network_speed = 100
|
2017-03-14 21:15:49 +00:00
|
|
|
cpu_total_compute = 4444
|
2016-03-12 02:24:58 +00:00
|
|
|
reserved {
|
|
|
|
cpu = 10
|
|
|
|
memory = 10
|
|
|
|
disk = 10
|
|
|
|
iops = 10
|
2016-03-12 03:02:44 +00:00
|
|
|
reserved_ports = "1,100,10-12"
|
2016-03-12 02:24:58 +00:00
|
|
|
}
|
|
|
|
client_min_port = 1000
|
|
|
|
client_max_port = 2000
|
|
|
|
max_kill_timeout = "10s"
|
2016-05-25 05:30:10 +00:00
|
|
|
stats {
|
|
|
|
data_points = 35
|
|
|
|
collection_interval = "5s"
|
|
|
|
}
|
2017-01-31 23:32:20 +00:00
|
|
|
gc_interval = "6s"
|
2017-03-11 00:27:00 +00:00
|
|
|
gc_parallel_destroys = 6
|
2017-01-31 23:32:20 +00:00
|
|
|
gc_disk_usage_threshold = 82
|
|
|
|
gc_inode_usage_threshold = 91
|
2017-05-12 22:57:27 +00:00
|
|
|
gc_max_allocs = 50
|
2017-06-23 23:23:01 +00:00
|
|
|
no_host_uuid = false
|
2016-03-12 02:24:58 +00:00
|
|
|
}
|
|
|
|
server {
|
|
|
|
enabled = true
|
2017-08-19 22:21:20 +00:00
|
|
|
authoritative_region = "foobar"
|
2016-03-12 02:24:58 +00:00
|
|
|
bootstrap_expect = 5
|
|
|
|
data_dir = "/tmp/data"
|
|
|
|
protocol_version = 3
|
|
|
|
num_schedulers = 2
|
|
|
|
enabled_schedulers = ["test"]
|
|
|
|
node_gc_threshold = "12h"
|
2017-02-27 19:58:10 +00:00
|
|
|
job_gc_threshold = "12h"
|
|
|
|
eval_gc_threshold = "12h"
|
2017-06-29 18:29:44 +00:00
|
|
|
deployment_gc_threshold = "12h"
|
2016-03-12 02:24:58 +00:00
|
|
|
heartbeat_grace = "30s"
|
2017-07-19 16:38:35 +00:00
|
|
|
min_heartbeat_ttl = "33s"
|
|
|
|
max_heartbeats_per_second = 11.0
|
2016-03-12 02:24:58 +00:00
|
|
|
retry_join = [ "1.1.1.1", "2.2.2.2" ]
|
|
|
|
start_join = [ "1.1.1.1", "2.2.2.2" ]
|
|
|
|
retry_max = 3
|
|
|
|
retry_interval = "15s"
|
|
|
|
rejoin_after_leave = true
|
2016-10-17 17:48:04 +00:00
|
|
|
encrypt = "abc"
|
2016-03-12 02:24:58 +00:00
|
|
|
}
|
2017-08-13 20:46:47 +00:00
|
|
|
acl {
|
|
|
|
enabled = true
|
2017-08-19 22:30:01 +00:00
|
|
|
token_ttl = "60s"
|
|
|
|
policy_ttl = "60s"
|
2017-08-21 03:51:30 +00:00
|
|
|
replication_token = "foobar"
|
2017-08-13 20:46:47 +00:00
|
|
|
}
|
2016-03-12 02:24:58 +00:00
|
|
|
telemetry {
|
|
|
|
statsite_address = "127.0.0.1:1234"
|
|
|
|
statsd_address = "127.0.0.1:2345"
|
2017-09-12 14:16:18 +00:00
|
|
|
prometheus_metrics = true
|
2016-03-12 02:24:58 +00:00
|
|
|
disable_hostname = true
|
2016-06-16 20:30:29 +00:00
|
|
|
collection_interval = "3s"
|
2016-08-02 02:49:01 +00:00
|
|
|
publish_allocation_metrics = true
|
|
|
|
publish_node_metrics = true
|
2017-09-06 18:23:58 +00:00
|
|
|
disable_tagged_metrics = true
|
|
|
|
backwards_compatible_metrics = true
|
2016-03-12 02:24:58 +00:00
|
|
|
}
|
|
|
|
leave_on_interrupt = true
|
|
|
|
leave_on_terminate = true
|
|
|
|
enable_syslog = true
|
|
|
|
syslog_facility = "LOCAL1"
|
|
|
|
disable_update_check = true
|
|
|
|
disable_anonymous_signature = true
|
|
|
|
atlas {
|
|
|
|
infrastructure = "armon/test"
|
|
|
|
token = "abcd"
|
|
|
|
join = true
|
|
|
|
endpoint = "127.0.0.1:1234"
|
|
|
|
}
|
|
|
|
http_api_response_headers {
|
|
|
|
Access-Control-Allow-Origin = "*"
|
|
|
|
}
|
2016-05-11 22:22:00 +00:00
|
|
|
consul {
|
2016-05-27 22:57:04 +00:00
|
|
|
server_service_name = "nomad"
|
2016-05-11 22:22:00 +00:00
|
|
|
client_service_name = "nomad-client"
|
2016-06-01 08:12:37 +00:00
|
|
|
address = "127.0.0.1:9500"
|
2016-05-11 22:22:00 +00:00
|
|
|
token = "token1"
|
|
|
|
auth = "username:pass"
|
|
|
|
ssl = true
|
2016-10-27 18:29:12 +00:00
|
|
|
verify_ssl = true
|
2016-05-11 22:22:00 +00:00
|
|
|
ca_file = "/path/to/ca/file"
|
|
|
|
cert_file = "/path/to/cert/file"
|
|
|
|
key_file = "/path/to/key/file"
|
2016-10-27 18:29:12 +00:00
|
|
|
server_auto_join = true
|
|
|
|
client_auto_join = true
|
|
|
|
auto_advertise = true
|
|
|
|
checks_use_advertise = true
|
2016-05-11 22:22:00 +00:00
|
|
|
}
|
2016-08-06 01:13:06 +00:00
|
|
|
vault {
|
|
|
|
address = "127.0.0.1:9500"
|
|
|
|
allow_unauthenticated = true
|
2016-08-13 04:59:31 +00:00
|
|
|
task_token_ttl = "1s"
|
2016-08-09 21:52:20 +00:00
|
|
|
enabled = false
|
2016-08-13 04:59:31 +00:00
|
|
|
token = "12345"
|
2016-11-03 21:24:39 +00:00
|
|
|
ca_file = "/path/to/ca/file"
|
|
|
|
ca_path = "/path/to/ca"
|
|
|
|
cert_file = "/path/to/cert/file"
|
|
|
|
key_file = "/path/to/key/file"
|
2016-08-06 01:13:06 +00:00
|
|
|
tls_server_name = "foobar"
|
2016-08-08 22:16:40 +00:00
|
|
|
tls_skip_verify = true
|
2017-01-19 21:40:32 +00:00
|
|
|
create_from_role = "test_role"
|
2016-08-06 01:13:06 +00:00
|
|
|
}
|
2016-10-24 20:46:22 +00:00
|
|
|
tls {
|
2016-10-25 00:07:44 +00:00
|
|
|
http = true
|
|
|
|
rpc = true
|
2016-10-24 20:46:22 +00:00
|
|
|
verify_server_hostname = true
|
|
|
|
ca_file = "foo"
|
|
|
|
cert_file = "bar"
|
|
|
|
key_file = "pipe"
|
2017-04-28 09:45:09 +00:00
|
|
|
verify_https_client = true
|
2016-10-24 20:46:22 +00:00
|
|
|
}
|
2017-09-19 14:47:10 +00:00
|
|
|
sentinel {
|
|
|
|
import "foo" {
|
|
|
|
path = "foo"
|
|
|
|
args = ["a", "b", "c"]
|
|
|
|
}
|
|
|
|
import "bar" {
|
|
|
|
path = "bar"
|
|
|
|
args = ["x", "y", "z"]
|
|
|
|
}
|
|
|
|
}
|