Guard the auto-join functionality behind its `consul.server_auto_join` tunable
This commit is contained in:
parent
5e0ced2ae7
commit
324af8d7f1
|
@ -469,7 +469,9 @@ func (s *Server) setupConsulSyncer() error {
|
|||
|
||||
return nil
|
||||
}
|
||||
s.consulSyncer.AddPeriodicHandler("Nomad Server Fallback Server Handler", bootstrapFn)
|
||||
if s.config.ConsulConfig.ServerAutoJoin {
|
||||
s.consulSyncer.AddPeriodicHandler("Nomad Server Fallback Server Handler", bootstrapFn)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue