Merge pull request #3761 from hashicorp/d-consul
Actually show Consul config defaults
This commit is contained in:
commit
959a346eb1
|
@ -109,12 +109,16 @@ Nomad cluster will [automatically bootstrap][bootstrap] provided
|
||||||
This example shows the default Consul integration:
|
This example shows the default Consul integration:
|
||||||
|
|
||||||
```hcl
|
```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
|
### Custom Address and Port
|
||||||
|
|
||||||
This example shows pointing the Nomad agent at a different Consul address. Note
|
This example shows pointing the Nomad agent at a different Consul address. Note
|
||||||
|
|
Loading…
Reference in a new issue