mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Functional consul template env file support
This commit is contained in:
@@ -336,6 +336,7 @@ type Template struct {
|
||||
Perms *string `mapstructure:"perms"`
|
||||
LeftDelim *string `mapstructure:"left_delimiter"`
|
||||
RightDelim *string `mapstructure:"right_delimiter"`
|
||||
Envvars *bool `mapstructure:"env"`
|
||||
}
|
||||
|
||||
func (tmpl *Template) Canonicalize() {
|
||||
@@ -373,6 +374,9 @@ func (tmpl *Template) Canonicalize() {
|
||||
if tmpl.RightDelim == nil {
|
||||
tmpl.RightDelim = helper.StringToPtr("}}")
|
||||
}
|
||||
if tmpl.Envvars == nil {
|
||||
tmpl.Envvars = helper.BoolToPtr(false)
|
||||
}
|
||||
}
|
||||
|
||||
type Vault struct {
|
||||
|
||||
Reference in New Issue
Block a user