mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-22 16:01:43 -04:00
* Update HCL variable documentation * Add supported arguments section for variables * Add inpage links to key variable arguments * Reorder content to cluster assignment documentation together * Split variable definitions into two sub-sections Co-authored-by: Lucas Bajolet <[email protected]>
8 lines
387 B
Plaintext
8 lines
387 B
Plaintext
## Assigning Values to input Variables
|
|
|
|
Once a variable is declared in your configuration, you can set it:
|
|
|
|
- Individually, with the `-var foo=bar` command line option.
|
|
- In variable definitions files, either specified on the command line with the `-var-files values.pkrvars.hcl` or automatically loaded (`*.auto.pkrvars.hcl`).
|
|
- As environment variables, for example: `PKR_VAR_foo=bar`
|