open-nomad/nomad/server_setup_oss.go
2020-02-16 15:41:43 -06:00

20 lines
446 B
Go

// +build !pro,!ent
package nomad
import (
"github.com/hashicorp/consul/agent/consul/autopilot"
)
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)
return nil
}
func (s *Server) startEnterpriseBackground() {}