Files
nomad/command/agent/testdata/extra-consul.json
Tim Gross 9d075c44b2 config: remove old Vault/Consul config blocks from parser (#18997)
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
2023-11-08 09:30:08 -05:00

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"
}
}
]
}