Merge pull request #3761 from hashicorp/d-consul

Actually show Consul config defaults
This commit is contained in:
Alex Dadgar 2018-01-16 15:56:15 -08:00 committed by GitHub
commit 959a346eb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -109,12 +109,16 @@ Nomad cluster will [automatically bootstrap][bootstrap] provided
This example shows the default Consul integration:
```hcl
consul {
address = "127.0.0.1:8500"
server_service_name = "nomad"
client_service_name = "nomad-client"
auto_advertise = true
server_auto_join = true
client_auto_join = true
}
```
That is not a mistake - it is intentionally empty. If a local Consul agent is
running at the default address, Nomad will automatically connect and use the
default values listed above.
### Custom Address and Port
This example shows pointing the Nomad agent at a different Consul address. Note