open-nomad/nomad/server_setup_oss.go
Alex Dadgar 3c19d01d7a server
2018-09-15 16:23:13 -07:00

21 lines
545 B
Go

// +build !pro,!ent
package nomad
import (
"github.com/hashicorp/consul/agent/consul/autopilot"
log "github.com/hashicorp/go-hclog"
)
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.StandardLogger(&log.StandardLoggerOptions{InferLevels: true}), apDelegate, config.AutopilotInterval, config.ServerHealthInterval)
return nil
}
func (s *Server) startEnterpriseBackground() {}