Hello Packer Community,
The Packer Team is excited to announce the official release of Packer 1.13.0. This release contains four major improvements, along with a series of other smaller changes and bug fixes.
Notable changes:
core
: Enhanced the existing inline field in the shell provisioner to support any script with its own shebang (#!). Allows users to provide scripts directly in the inline field, making it possible to use scripts generated by functions like templatefile. Ensures that the shell provisioner executes the given script as intended, honouring the script’s shebang line.
core
: Added new built-in functions to Packer: sum
startswith
endswith
These new functions expand the capabilities for template logic and variable handling in Packer builds.
hcl2
: Added the ability for the packer fmt
command to format multiple HCL files at once. This enhancement allows users to format several files in a single command invocation.
hcl2
: Added top level hcp_packer_registry
block (this configuration was previously nested inside the build block and is still valid but deprecated).
Bug Fixes:
core
: Updated the documentation to explicitly state that a trailing slash is required when uploading directories, regardless of the guest OS. This clarification is intended to ensure consistent behavior and prevent confusion, especially for Windows users.
core
: Fixed an error occurring when using the --use-sequential-evaluation flag with the packer console. Updated the FlagSets to correctly include this flag, resolving the error.
core
: added a wrapper around inline PowerShell commands executed by the provisioner to catch errors and ensure the Packer build fails if any command results in an error.
hcl2
: Ensures that Packer now preserves the user-defined order of variable files as input by the user. This change maintains the intended precedence of variables, honouring the order specified on the command line.
As always, you can refer to the Packer CHANGELOG for a more detailed list of changes. We also uploaded Release Note for this version on our documentation website.
Thank you all again for your continued support and contributions.
The Packer Team.