File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,10 +36,15 @@ type Provisioner struct {
3636 // for examples such as 3010 - "The requested operation is successful.
3737 ValidExitCodes []int `mapstructure:"valid_exit_codes"`
3838
39- // An array of environment variables that will be injected before
40- // your command(s) are executed.
39+ // An array of environment variables that will be injected before your
40+ // command(s) are executed. Any duplicate vars will be overridden by `env` .
4141 Vars []string `mapstructure:"environment_vars"`
4242
43+ // An map of environment variables that will be injected before your
44+ // command(s) are executed. Any duplicate `environment_vars` will be
45+ // overridden by `env`.
46+ Env map [string ]string `mapstructure:"env"`
47+
4348 // This is used in the template generation to format environment variables
4449 // inside the `ExecuteCommand` template.
4550 EnvVarFormat string `mapstructure:"env_var_format"`
You can’t perform that action at this time.
0 commit comments