Back to Packer

Assignment

website/content/partials/from-1.5/variables/assignment.mdx

1.15.3386 B
Original Source

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