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:
parent
5a87760702
commit
70752e0488
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue