2019-04-30 13:22:12 +00:00
|
|
|
{
|
|
|
|
"autopilot": {
|
|
|
|
"cleanup_dead_servers": true
|
|
|
|
},
|
|
|
|
"acl": {
|
|
|
|
"enabled": true
|
|
|
|
},
|
2020-03-22 16:17:33 +00:00
|
|
|
"audit": {
|
|
|
|
"enabled": true,
|
|
|
|
"sink": [
|
|
|
|
{
|
|
|
|
"file": {
|
|
|
|
"type": "file",
|
|
|
|
"format": "json",
|
|
|
|
"delivery_guarantee": "enforced",
|
|
|
|
"path": "/opt/nomad/audit.log",
|
|
|
|
"rotate_bytes": 100,
|
|
|
|
"rotate_duration": "24h",
|
|
|
|
"rotate_max_files": 10
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"filter": [
|
|
|
|
{
|
|
|
|
"default": [
|
|
|
|
{
|
2020-03-30 14:03:11 +00:00
|
|
|
"endpoints": ["/v1/metrics"],
|
2020-03-22 16:17:33 +00:00
|
|
|
"operations": ["*"],
|
|
|
|
"stages": ["*"],
|
|
|
|
"type": "HTTPEvent"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-04-30 13:22:12 +00:00
|
|
|
"advertise": {
|
|
|
|
"http": "host.example.com",
|
|
|
|
"rpc": "host.example.com",
|
|
|
|
"serf": "host.example.com"
|
|
|
|
},
|
|
|
|
"bind_addr": "0.0.0.0",
|
|
|
|
"consul": {
|
|
|
|
"server_auto_join": false,
|
|
|
|
"client_auto_join": false,
|
|
|
|
"token": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
|
|
|
|
},
|
|
|
|
"data_dir": "/opt/data/nomad/data",
|
|
|
|
"datacenter": "dc1",
|
|
|
|
"enable_syslog": true,
|
|
|
|
"leave_on_interrupt": true,
|
|
|
|
"leave_on_terminate": true,
|
|
|
|
"log_level": "INFO",
|
|
|
|
"region": "global",
|
|
|
|
"server": {
|
|
|
|
"bootstrap_expect": 3,
|
|
|
|
"enabled": true,
|
|
|
|
"encrypt": "sHck3WL6cxuhuY7Mso9BHA==",
|
2022-07-12 22:40:20 +00:00
|
|
|
"plan_rejection_tracker": {
|
|
|
|
"node_threshold": 100,
|
|
|
|
"node_window": "31m"
|
|
|
|
},
|
2019-04-30 13:22:12 +00:00
|
|
|
"retry_join": [
|
|
|
|
"10.0.0.101",
|
|
|
|
"10.0.0.102",
|
|
|
|
"10.0.0.103"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"syslog_facility": "LOCAL0",
|
|
|
|
"telemetry": {
|
|
|
|
"collection_interval": "60s",
|
|
|
|
"disable_hostname": true,
|
|
|
|
"prometheus_metrics": true,
|
|
|
|
"publish_allocation_metrics": true,
|
|
|
|
"publish_node_metrics": true
|
|
|
|
},
|
|
|
|
"tls": {
|
|
|
|
"ca_file": "/opt/data/nomad/certs/nomad-ca.pem",
|
|
|
|
"cert_file": "/opt/data/nomad/certs/server.pem",
|
|
|
|
"http": true,
|
|
|
|
"key_file": "/opt/data/nomad/certs/server-key.pem",
|
|
|
|
"rpc": true,
|
|
|
|
"verify_server_hostname": true
|
|
|
|
},
|
|
|
|
"vault": {
|
|
|
|
"address": "http://host.example.com:8200",
|
|
|
|
"create_from_role": "nomad-cluster",
|
|
|
|
"enabled": true
|
|
|
|
}
|
|
|
|
}
|