2017-09-19 14:47:10 +00:00
|
|
|
// +build !pro,!ent
|
|
|
|
|
|
|
|
package nomad
|
|
|
|
|
2018-09-15 23:23:13 +00:00
|
|
|
import (
|
|
|
|
"github.com/hashicorp/consul/agent/consul/autopilot"
|
|
|
|
log "github.com/hashicorp/go-hclog"
|
|
|
|
)
|
2017-12-18 21:16:23 +00:00
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
type EnterpriseState struct{}
|
|
|
|
|
|
|
|
func (s *Server) setupEnterprise(config *Config) error {
|
2017-12-18 21:16:23 +00:00
|
|
|
// Set up the OSS version of autopilot
|
|
|
|
apDelegate := &AutopilotDelegate{s}
|
2019-10-24 20:58:12 +00:00
|
|
|
s.autopilot = autopilot.NewAutopilot(s.logger.StandardLoggerIntercept(&log.StandardLoggerOptions{InferLevels: true}), apDelegate, config.AutopilotInterval, config.ServerHealthInterval)
|
2017-12-18 21:16:23 +00:00
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *Server) startEnterpriseBackground() {}
|