mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-01 04:04:02 -04:00
Add prompt to use a specific directory for *.pkr.hcl (#8757)
This improves usability as many users will still expect to use `packer build config.pkr.hcl` having run `packer build config.json` in the past.
This commit is contained in:
@@ -19,7 +19,9 @@ Local variables can be a compound of input variables and local variables.
|
||||
Let's create a file `variables.pkr.hcl` with the following contents.
|
||||
|
||||
-> **Note**: that the file can be named anything, since Packer loads all
|
||||
files ending in `.pkr.hcl` in a directory.
|
||||
files ending in `.pkr.hcl` in a directory. If you split your configuration
|
||||
across multiple files, use `packer build <source directory>` to initiate
|
||||
a build.
|
||||
|
||||
```hcl
|
||||
# variables.pkr.hcl
|
||||
|
||||
Reference in New Issue
Block a user