open-nomad/nomad/server_setup_oss.go

18 lines
441 B
Go
Raw Normal View History

2017-09-19 14:47:10 +00:00
// +build !pro,!ent
package nomad
import "github.com/hashicorp/consul/agent/consul/autopilot"
2017-09-19 14:47:10 +00:00
type EnterpriseState struct{}
func (s *Server) setupEnterprise(config *Config) error {
// Set up the OSS version of autopilot
apDelegate := &AutopilotDelegate{s}
s.autopilot = autopilot.NewAutopilot(s.logger, apDelegate, config.AutopilotInterval, config.ServerHealthInterval)
2017-09-19 14:47:10 +00:00
return nil
}
func (s *Server) startEnterpriseBackground() {}