open-nomad/nomad/server_setup_oss.go
2020-05-28 15:40:17 -04:00

28 lines
624 B
Go

// +build !ent
package nomad
import (
"github.com/hashicorp/consul/agent/consul/autopilot"
)
// LicenseConfig allows for tunable licensing config
// primarily used for enterprise testing
type LicenseConfig struct{}
type EnterpriseState struct{}
func (es *EnterpriseState) Features() uint64 {
return 0
}
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() {}