2023-03-28 19:39:22 +01:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2021-11-16 12:04:01 -06:00
|
|
|
//go:build !consulent
|
2019-05-01 11:11:27 -04:00
|
|
|
// +build !consulent
|
2018-02-05 13:25:28 -08:00
|
|
|
|
|
|
|
package config
|
|
|
|
|
2019-12-18 10:16:35 -05:00
|
|
|
// DefaultEnterpriseSource returns the consul agent configuration for enterprise mode.
|
|
|
|
// These can be overridden by the user and therefore this source should be merged in the
|
|
|
|
// head and processed before user configuration.
|
2018-02-05 13:25:28 -08:00
|
|
|
func DefaultEnterpriseSource() Source {
|
2020-11-20 18:14:17 -05:00
|
|
|
return LiteralSource{Name: "enterprise-defaults"}
|
2019-12-18 10:16:35 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// OverrideEnterpriseSource returns the consul agent configuration for the enterprise mode.
|
|
|
|
// This should be merged in the tail after the DefaultConsulSource.
|
|
|
|
func OverrideEnterpriseSource() Source {
|
2020-11-20 18:14:17 -05:00
|
|
|
return LiteralSource{Name: "enterprise-overrides"}
|
2018-02-05 13:25:28 -08:00
|
|
|
}
|