open-nomad/nomad/server_setup_oss.go
Drew Bailey b296558b8e
oss compoments for multi-vault namespaces
adds in oss components to support enterprise multi-vault namespace feature

upgrade specific doc on vault multi-namespaces

vault docs

update test to reflect new error
2020-07-24 10:14:59 -04:00

31 lines
712 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() {}
func (s *Server) entVaultDelegate() *VaultNoopDelegate {
return &VaultNoopDelegate{}
}