mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 00:15:43 +03:00
Remove the now-unused original configuration blocks for Consul and Vault from the agent configuration parsing. When the agent needs to refer to a Consul or Vault block it will always be for a specific cluster for the task/service (or the default cluster for the agent's own use). This is third of three changesets for this work. Fixes: https://github.com/hashicorp/nomad/issues/18947 Ref: https://github.com/hashicorp/nomad/pull/18991 Ref: https://github.com/hashicorp/nomad/pull/18994
39 lines
929 B
JSON
39 lines
929 B
JSON
{
|
|
"consul": [
|
|
{
|
|
"address": "127.0.0.1:9501",
|
|
"allow_unauthenticated": false,
|
|
"token": "abracadabra",
|
|
"timeout": "20s"
|
|
},
|
|
{
|
|
"name": "alternate",
|
|
"server_service_name": "nomad",
|
|
"server_http_check_name": "nomad-server-http-health-check",
|
|
"server_serf_check_name": "nomad-server-serf-health-check",
|
|
"server_rpc_check_name": "nomad-server-rpc-health-check",
|
|
"client_service_name": "nomad-client",
|
|
"client_http_check_name": "nomad-client-http-health-check",
|
|
"address": "127.0.0.2:8501",
|
|
"allow_unauthenticated": true,
|
|
"token": "xyzzy",
|
|
"auth": "username:pass"
|
|
},
|
|
{
|
|
"name": "other",
|
|
"service_identity": {
|
|
"aud": [
|
|
"consul-other.io"
|
|
],
|
|
"ttl": "3h"
|
|
},
|
|
"task_identity": {
|
|
"aud": [
|
|
"consul-other.io"
|
|
],
|
|
"ttl": "5h"
|
|
}
|
|
}
|
|
]
|
|
}
|