Merge pull request #1298 from hashicorp/b-auto-join

Only auto-join clients if `client_auto_join` is true
This commit is contained in:
Sean Chittenden 2016-06-16 14:48:27 -07:00 committed by GitHub
commit 0420c29f3b

View file

@ -1349,7 +1349,9 @@ func (c *Client) setupConsulSyncer() error {
return nil return nil
} }
if c.config.ConsulConfig.ClientAutoJoin {
c.consulSyncer.AddPeriodicHandler("Nomad Client Fallback Server Handler", bootstrapFn) c.consulSyncer.AddPeriodicHandler("Nomad Client Fallback Server Handler", bootstrapFn)
}
consulServicesReaperFn := func() error { consulServicesReaperFn := func() error {
const estInitialExecutorDomains = 8 const estInitialExecutorDomains = 8