Packer Changelog

What's new in Packer 1.10.3

Apr 23, 2024
  • NOTES:
  • A LICENSE.txt file has been added to the Packer release artifacts. GH-12981
  • FEATURES:
  • Packer users can now track Packer version and plugin versions used for each build artifact in HCP Packer. GH-12891 GH-12910 GH-12923 GH-12926
  • SECURITY:
  • Bump github.com/go-jose/go-jose/v3 to address GHSA-c5q2-7r4c-mv6g. GH-12928
  • Bump golang.org/x/net to v0.24.0 to address GO-2024-2687. GH-12924
  • BUG FIXES:
  • cmd/fmt: Display information error when Packer fmt fails due to HCL2 parsing error. GH-12870

New in Packer 1.10.2 (Mar 7, 2024)

  • IMPROVEMENTS:
  • cmd/plugins: Add support for installing local development binaries to packer plugins install.
  • core: Validate bucket name when using hcp_packer_registry block.
  • core: Update github.com/hashicorp/hcp-sdk-go from 0.83.0 to 0.85.0.
  • BUG FIXES:
  • core/hcp: HCP Packer build failures properly distinguish between incompatible
  • plugins and general publishing errors.

New in Packer 1.10.0 (Dec 6, 2023)

  • NOTES:
  • This release contains breaking changes for practitioner relying on plugins previously bundled into Packer. As specified in the Bundled Plugins Removal announcement HashiCorp maintained plugins will no longer be shipped with Packer. Users are encouraged to use packer init or packer plugins [...] when managing required plugins needed for executing their builds. GH-12660
  • The affected plugins include:
  • packer-plugin-amazon
  • packer-plugin-ansible
  • packer-plugin-azure
  • packer-plugin-docker
  • packer-plugin-googlecompute
  • packer-plugin-qemu
  • packer-plugin-vagrant
  • packer-plugin-virtualbox
  • packer-plugin-vmware
  • packer-plugin-vsphere
  • SECURITY:
  • Bump github.com/go-jose/go-jose/v3 to address GO-2023-2334. There have been no reported issues with Packer but we are bumping given that it is a secondary dependency. GH-12723
  • Bump Go to 1.20.10 to Address CVE-2023-44487 / CVE-2023-39325. GH-12661
  • Bump Go to 1.20.11 CVE-2023-45283. There have been no reported issues with Packer but we are bumping given its usage of the path/filepath pkg. GH-12690
  • Bump Packer Plugin SDK to v0.5.2. GH-12717
  • PLUGINS:
  • Removed all HashiCorp vendored plugins from being bundled into the Packer binary. GH-12660, GH-12720
  • packer-plugin-hcloud: The Hetzner Cloud plugin has been handed over to the Hetzner integrations team. New releases for this plugin are available at https://github.com/hetznercloud/packer-plugin-hcloud. Existing references to the plugin will continue to work but users are advised to update the required_plugins block to use the new plugin source address.
  • IMPROVEMENTS:
  • cmd/init: Warn users running packer init on configuration templates with a missing required_plugins blocks. GH-12638
  • cmd/plugins: Add --path flag to packer plugins install subcommand to support installation of plugins from a local binary rather than from GitHub. GH-12643
  • cmd/plugins: Install SHA256SUM file with 0644 perms. GH-12665
  • cmd/plugins: Remove SHA256SUM file on plugin removal. GH-12666
  • cmd/plugins: Remove will error if it fails to find the plugin being selected for removal. GH-12669
  • core/hcl2: Remove empty source file reference on unset variable errors. GH-12712
  • core/hcl: Improve the recursive execution of data sources with other data source dependencies. GH-12608
  • core: Bump github.com/hashicorp/hcp-sdk-go from 0.73.0 to 0.74.0 - GH-12704
  • core: Bump Packer Plugin SDK to v0.5.2. GH-12717
  • core: Provide integration link as hint in error message if a plugin component is unknown. GH-12705
  • core: Update version output for packer -v and packer --version to match packer version. GH-12569
  • docs: Update plugin installation guides with supported methods for 1.10.0 and above. GH-12713
  • BUG FIXES:
  • cmd/plugins: Update packer plugin installed to show all installed plugin binaries, including any duplicate versions or binaries copied from a different source URI. GH-12731

New in Packer 1.9.5 (Dec 5, 2023)

  • SECURITY:
  • Bump github.com/go-jose/go-jose/v3 to address GO-2023-2334. GH-12723
  • BUG FIXES:
  • Add VirtualBox as known plugin prefix to prevent endless bundled plugin warning. GH-12719

New in Packer 1.9.4 (Aug 20, 2023)

  • BUG FIXES:
  • core: When invoking Packer with the CHECKPOINT_DISABLE environment variable the telemetry reporter is left uninitialized in order to disable telemetry reporting. Any method calls on the nil reporter is expected to check if the reporter is active or in NOOP mode. The SetBundledUsage function, introduced in Packer 1.9.2, failed to perform a nil check before attempting to modify an attribute, causing Packer to fail when telemetry is disabled. This release fixes this issue by introducing such a check.

New in Packer 1.9.3 (Aug 18, 2023)

  • NOTES:
  • New Docker Image: As part of the bundled plugin removal effort, a new Docker target called release-full has been added to the Packer release artifacts. The release-full image includes Packer and all the official plugins pre-installed in its environment. This image is being offered as an alternative option for those users who may still be relying on the plugin versions bundled into the Packer binary. GH-12532
  • IMPROVEMENTS:
  • core/docs: Clarify the expected usage of the packer init command for HCL2 template builds.GH-12535
  • core/hcp: Add support for project-level service principals. A user connecting with a project level service principals must provide a valid HCP_PROJECT_ID in order to connect. GH-12520 GH-12576
  • core: A new Docker image packer:release-full has been added for all supported architectures. The release-full image includes Packer and all the official plugins pre-installed in its environment. GH-12532
  • core: Add enhanced support to Packer telemetry for bundle plugins usage. GH-12536
  • BUG FIXES:
  • core: Bump golang.org/x/net to v0.13.0 to address CVE GO-2023-1988. Packer itself is not vulnerable to the CVE as we don't render web pages, but security checks do point it as an issue that needs to be addressed. GH-12561
  • core: Fix custom plugin loading in current working directory regression. GH-12544

New in Packer 1.9.2 (Jul 20, 2023)

  • NOTES:
  • Vendored plugins within Packer have not been updated. Plugin releases occur on a regular basis to address issues and feature requests. Please note that in an upcoming version of Packer, we will remove the last bundled plugins from Packer. Users are encouraged to use packer init for HCL2 templates or packer plugins install with legacy JSON templates for installing external plugins.
  • Packer will now warn when using bundled plugins. This feature will be removed in a future version of the tool, so this warning is meant to bring awareness of the upcoming change, and help users update their templates. GH-12495
  • BUG FIXES:
  • Fixed a bug with how Packer was discovering plugins: in order to load plugins, Packer would recursively scan all the known directories in which we could have installed plugins. This caused unnecessary directory walks and slowdowns upon invocation. Packer will now only check for nested plugins within the directories used by commands such as packer init, or packer plugins install, or as defined in PACKER_PLUGIN_PATH. Refer to Packer's plugin directory documentation for details on how loading works. GH-12414
  • The packer init subcommand now bundles all the missing installed plugins into one condensed warning, as opposed to one warning per missing plugin. GH-12506
  • PLUGINS:
  • packer-plugin-parallels: The Parallels plugin has been handed over to the Parallels team. New releases for this plugin are available at https://github.com/parallels/packer-plugin-parallels. This plugin is no longer being bundled in the Packer binary release. Existing references to the plugin will continue to work but users are advised to update the required_plugins block to use the new plugin source address. GH-12476
  • IMPROVEMENTS:
  • The hcl2_upgrade sub-command will now add required_plugins to the template generated from JSON for official plugins. GH-12504

New in Packer 1.9.1 (Jun 2, 2023)

  • BUG FIXES:
  • On May 16th 2023, HCP introduced multi-project support to the platform. In order to use multiple projects in your organization, you will need to update Packer to version 1.9.1 or above. Starting with 1.9.1, you may specify a project ID to push builds to with the HCP_PROJECT_ID environment variable. If no project ID is specified, Packer will pick the project with the oldest creation date. Older versions of Packer are incompatible with multi-project support on HCP, and builds will fail for HCP organizations with multiple projects on versions before 1.9.1. GH-12453

New in Packer 1.9.0 (May 31, 2023)

  • NOTES:
  • Breaking Change: Iteration fingerprints used to be computed from the Git SHA of the repository where the template is located when running packer build. This changes with this release, and now fingerprints are automatically generated as a ULID. This implies that continuing an existing iteration will require users to define the fingerprint in the environment manually in order to adopt this behaviour, otherwise, by default, a new iteration will be created. This does not impact workflows where the fingerprint was defined through the HCP_PACKER_ITERATION_FINGERPRINT environment variable, and these builds will work exactly as they did before.
  • Breaking Change: Community-maintained plugins bundled with the Packer binary have been removed.
  • These external plugin components are released independently of Packer core and can be installed directly by the user. Users relying on the external plugin components listed below should refer to the packer plugins sub-command and, if using HCL2, a required_plugins block to define a list of plugins for building a template.
  • PLUGINS:
  • Remove provisioner plugins for Chef, Converge, Puppet, Salt, and Inspec as vendored plugins. These plugins have been previously archived and not updated in release since being archived. These plugins can be installed using packer init or with the Packer plugins sub-command packer plugins install github.com/hashicorp/chef.
  • The following community plugins won't be bundled with Packer anymore:
  • Alicloud
  • CloudStack
  • HCloud
  • HyperOne
  • Hyper-V
  • JDCloud
  • LXC
  • LXD
  • NCloud
  • OpenStack
  • Proxmox
  • TencentCloud
  • Triton
  • Yandex
  • Users relying on these external plugin components should refer to the packer plugins sub-command and, if using HCL2, a required_plugins block to define a list of plugins to use for building a template.
  • IMPROVEMENTS:
  • core/hcp: Now, fingerprints used by HCP Packer are randomly generated ULIDs instead of a Git SHA, and a new one is always generated, unless one is specified in the environment.
  • BUG FIXES:
  • Fix LDFLAGS for release pipelines: Between Packer 1.8.5 and Packer 1.8.7, changes to the LDFLAGS in use for building the binaries for Packer had mistakenly removed some compilation flags, leading to the final binaries not being stripped.
  • This change raised the size of the built binaries by as much as 45%.
  • In this release, we fixed the LDFLAGS during compilation, yielding leaner binaries.
  • Bumped gopsutil to v3. This fixes a macOS intermittent crash reported by the community

New in Packer 1.8.7 (May 5, 2023)

  • PLUGINS:
  • core: Migrate external Linode plugin to linode/packer-plugin-linode. GH-12329
  • core: Migrate external UCloud plugin to ucloud/packer-plugin-ucloud. GH-12335
  • core: Remove external plugin for Digital Ocean as a vendored plugin. GH-12376
  • core: Remove external plugins for Profitbricks and 1&1 as vendored plugins. GH-12385
  • docs: Add HCP Ready label to Oracle builder components. GH-12217
  • IMPROVEMENTS:
  • cmd/console: Add config-type flag to command help. GH-12360
  • core: Add enhanced support to Packer telemetry for HCL2. GH-12319
  • Enhance zsh completion for the Packer command. GH-12356, GH-12366
  • BUG FIXES:
  • cmd/hcl2_upgrade: Fix a crash when running the hcl2_upgrade command against a legacy JSON template containing user variables with an undefined variables block. GH-12257
  • core: Bump github.com/hashicorp/hcp-sdk-go to 0.36.0. GH-12292
  • core: Bump github.com/hashicorp/packer-plugin-sdk to 0.4.0 to address CVE-2023-0475, CVE-2022-41723. GH-12306
  • core: Bump Go module version to 1.20 GH-12380
  • core: Fix regression introduced in 1.8.6, where legacy JSON templates with custom builder names are outputted to STDOUT as uninterpolated user variables. GH-12290

New in Packer 1.8.6 (Feb 16, 2023)

  • NOTES:
  • core: Users will see some changes in how names are displayed during a Packer build for JSON templates. Previously only the builder type or the builder name, if it was set, would be displayed. Now for named builders ("name":"mybuilder") the builder's type and name will be displayed (i.e ".mybuilder". This does not impact the behavior of options such as only or except, they will continue to work as they did before.)
  • PLUGINS:
  • The following external plugins have been updated and pinned to address open issues. Please see their respective changelogs for details on plugin specific bug fixes and improvements.
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • IMPROVEMENTS:
  • Bump bundled plugins to latest available version. GH-12271
  • bump github.com/hashicorp/hcp-sdk-go from 0.28.0 to 0.29.0 GH-12163
  • Bump github.com/hashicorp/hcp-sdk-go from 0.33.0 to 0.34.0 GH-12262
  • core/hcl2: Packer will no longer warn on excluded post-processors when using -only/exlude filters for running select builds. GH-12187
  • BUG FIXES:
  • cmd/hcl2_upgrade: Fix crash when variables block is undefined. GH-12250
  • core/hcl2: Templates with build blocks referencing an unknown source block would display an empty string for the template filename at line 0, which made it difficult to identify the broken build block. Packer has been updated to display the proper filename and line number where the unknown reference resides. GH-12167
  • core: Linux packages now have vendor label and set the default label to HashiCorp. This fix is implemented for any future releases, but will not be updated for historical releases.
  • core/hcp: The bucket's description was not properly set in the bucket object sent to HCP Packer leaving all newly created buckets with an empty description. [GH-12235] GH-12235

New in Packer 1.8.5 (Dec 13, 2022)

  • NOTES:
  • data/packer-image-iteration has been removed. This was an undocumented and unusable data source that was built for experimentation but not released. It should not affect users in any way but is being mentioned for visibility purposes. GH-12111
  • FEATURES:
  • core: Metadata for capturing template types such as JSON or HCL2 has been added to the HCP Packer registry metadata. Upon running a packer build the type of template used during execution will be sent along to the registry as additional build metadata.GH-12132
  • PLUGINS:
  • The following external plugins have been updated and pinned to address open issues. Please see their respective changelogs for details on plugin specific bug fixes and improvements.
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • IMPROVEMENTS:
  • cmd/hcl2_upgrade: Generate variable block for all referenced user input variables. GH-12136
  • cmd/validate: Add support for the -evaluate-datasources flag to evaluate the data sources from a template during validation time. GH-12106 GH-12152
  • core/hcl2: Variable definition files containing undeclared variables within an HCL2 template will no longer warn during build execution. Warnings will be displayed to a user during template validation, which can be disabled by passing the -no-warn-undeclared-var flag to the validate command. GH-12104 GH-12109
  • core: Docker images have been updated to include the xorriso package for supporting the creation of ISO files.GH-12081
  • core: Split HCP Packer publishing components into a separate internal-only module. GH-11 GH-12116
  • BUG FIXES:
  • cmd/init: The init command will try to fallback to the next available version for a plugin, if the most recent version is not available or has a missing checksum file. This should prevent Packer from trying to install versions that have a GitHub tag but no actual assets. GH-12103
  • cmd/plugins: The plugins install sub-command will try to fallback to the next available version for a plugin, if the most recent version is not available or has a missing checksum file. This should prevent Packer from trying to install versions that have a GitHub tag but no actual assets. GH-12103
  • core: Bump Go version to 1.18.9 to address vulnerability GO-2022-1144, which concerns the net/http and golang.org/x/net packages.GH-12153 GH-12158
  • core: Fix the registration of deleted input artifacts in HCP Packer when setting keep_input_artifacts to false.GH-11462
  • core: Using different template types when building a HCP Packer image iteration will now trigger a runtime build error due to the mixing of template types. GH-12132

New in Packer 1.8.4 (Oct 30, 2022)

  • NOTES:
  • Packer user documentation has been moved to the new HashiCorp developer documentation portal. The main Packer site (https://www.packer.io) will continue to be the home for Packer but all requests for general documentation and binary downloads will be redirected to https://developer.hashicorp.com/packer. Users are encouraged to visit the developer documentation portal for access to all Packer related documentation; including integrations with HCP Packer.
  • The Oracle builder and post-processor are no longer vendored with Packer core. Users of the Oracle plugin should use packer init to install the latest version of the plugin. See the Oracle Plugin Documentation for more information. GH-11983
  • HCP Packer environment variables: The behavior of some HCP Packer-specific environment variables have changed slightly. Refer to HCP Packer in the Packer documentation for a full list of HCP Packer environment variables. GH-12059
  • For JSON templates, the HCP_PACKER_REGISTRY environment variable was previously required to enable the HCP Packer integration. In this release, the environment variable is now optional, and can be used for disabling the publishing of metadata for any HCP Packer enabled configuration template.
  • For HCL2 templates, the HCP_PACKER_REGISTRY environment variable can be used to disable publishing to a HCP Packer registry even if the template defines a hcp_packer_registry block. This can be useful for testing that a template works as intended prior to pushing metadata to HCP Packer.
  • The HCP_PACKER_BUCKET_NAME environment variable is now the only requirement to push metadata to a HCP Packer registry, in both JSON and HCL2 templates without a hcp_packer_registry block.
  • FEATURES:
  • provisioner/powershell: Add use_pwsh configuration argument to support pwsh in powershell provisioner. GH-11950
  • PLUGINS:
  • builder/oracle: Remove Oracle plugin from the list of vendored plugins. GH-11983
  • IMPROVEMENTS:
  • command/hcl2_upgrade: Has been updated to persist all possible template engine options that were supported by the legacy JSON templates. While the upgrade command copies the template engine options as is support for the template options may not actually work with HCL2 templates; indicated by an error similar to fieldname type is invalid. Before executing a build with the upgraded template you are encouraged to run packer validate against the template and fix any invalid references. GH-12068
  • core/hcl2: Packer will now report an error when executing a build with no sources selected for execution. GH-12016
  • core/hcp: Configuration errors for HCP Packer enabled builds have been consolidated into a single report to help users address all potential issues before retrying their build. GH-12031
  • core/hcp: Named builds within a legacy JSON template are now published to a HCP Packer registry using its full build name (e.g happycloud.windows-srv-2019), as opposed to just the build name field (e.g "name"="windows-srv-2019"). Builders with no defined name will continue to publish build metadate using the builder type as the build name (e.g happycloud). GH-12059
  • core:hcl2: When a variable is set in a variables definitions file (i.e *.pkrvars.hcl), but isn't defined with the template files (i.e *.pkr.hcl), the outputted error message will now include an example of variable block that can be added to the build template to remedy the issue. GH-12020
  • core: Add ppc64le to binary releases for Linux. GH-11966
  • core: Bump github.com/hashicorp/packer-plugin-sdk from 0.3.1 to 0.3.2. GH-11981
  • core: Bump supported Go version to 1.18. GH-11927
  • BUG FIXES:
  • command/hcl2_upgrade: special case: Azure shared_image_gallery fix. GH-12087
  • core: Bump golang.org/x/sys to address CVE-2022-29526. GH-11953
  • core: Bump golang.org/x/text to v0.3.8. GH-12047
  • core: Update dependency to resolve GO-2022-0969. GH-12009

New in Packer 1.8.3 (Aug 3, 2022)

  • NOTES:
  • There's been a change in the way the ssh_timeout and the ssh_handshake_attempts configuration arguments work together. The behaviour is unchanged if both or none are specified. However, if only one of the two is set the other won't have a default value anymore and will be ignored. See Packer Plugin SDK change for details
  • packer-plugin-digitalocean: The Digital Ocean Packer plugin has been handed over to the Digital Ocean team. New releases for this plugin are available at https://github.com/digitalocean/packer-plugin-digitalocean. This plugin is still being bundled in the Packer binary but will be removed in a future release. Existing references to the plugin will continue to work but users are advised to update the required_plugins block to use the new plugin source address. GH-11912
  • packer-plugin-outscale: The Outscale Packer plugin managed by the Outscale team, since Packer 1.7.9, has been removed from the Packer binary. Users are advised to install the latest version of the plugin by running packer plugins install github.com/outscale/outscale. GH-11912
  • packer-plugin-outscale: The Scaleway Packer plugin managed by the Scaleway team, since Packer 1.7.7, has been removed from the Packer binary. Users are advised to install the latest version of the plugin by running packer plugins install github.com/scaleway/scaleway. GH-11912
  • FEATURES:
  • Future Scaffolding: This release contains additional changes that allow Packer core to validate that a newly built image is a direct child of a HCP Packer registry source image. This feature is only available for HCP Packer enabled builds using the hcp_packer_image and hcp_packer_iteration data source for setting a builder's source image. GH-11861
  • PLUGINS:
  • The following external plugins have been updated and pinned to address open issues. Please see their respective changelogs for details on plugin specific bug fixes and improvements.
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • IMPROVEMENTS:
  • Bump packer-plugin-sdk to v0.3.1 to fix inconsistencies between ssh_timeout and ssh_handshake_attempts configuration arguments in the SSH communicator. GH-11909
  • core: During long running builds the HCP Packer registry will mark a build as timed out if it has not posted an update after a certain number of minutes. For HCP Packer enabled builds a status update will now be sent every 2 minutes to the registry to prevent long builds from being marked as timed out. GH-11846
  • data/hcp_packer_image: Add component_type configuration argument to support specifying an exact build image when multiple images exist in the same provider and region for a given HCP Packer bucket iteration. GH-11872
  • data/hcp_packer_image: Add support for channel as input argument to retrieve an image from the associated iteration. If using several images from a single iteration, you may prefer sourcing an iteration first, and referencing it for subsequent uses, as every hcp_packer_image with the channel set will generate a potentially billable HCP Packer request, but if several hcp_packer_images use a shared hcp_packer_iteration that will only generate one potentially billable request. GH-11865
  • BUG FIXES:
  • core/hcl2: Fix crash when parsing malformed provisioner override blocks. GH-11881
  • core/hcl2: Fix crash when running packer validate on templates containing one or more HCP Packer data sources. GH-11883

New in Packer 1.8.2 (Jun 22, 2022)

  • NOTES:
  • The Packer plugin SDK includes the latest version of the go-getter library, which has been updated to address the vulnerabilities listed in HCSEC-2022-13. The updated SDK contains changes that can be breaking for some plugins as the updated go-getter settings in the SDK prevent reading/writing through symlinks and to sub-directories that require upward path traversal (e.g /tmp/.../etc/hosts). The updates also includes a 30 minute maximum timeout for file downloading, which can be an issue for very large or slow downloads if they exceed more than 30 minutes to complete.
  • SECURITY:
  • Bump packer-plugin-sdk to v0.3.0 to address reported vulnerabilities within the go-getter library. GH-11843
  • Bump plugins relying on go-getter for downloading remote files to address reported vulnerabilities within the go-getter library. See HCSEC-2022-13 for details. GH-11844
  • FEATURES:
  • Future Scaffolding: This release contains changes that allow Packer core to validate that a newly built image is a direct child of a HCP Packer registry source image. This feature is only available for HCP Packer enabled builds using the hcp_packer_image data source for setting a builder's source image. GH-11832
  • PLUGINS:
  • External plugins have been pinned to the following versions. Please see their respective changelogs for details on plugin specific bug fixes and improvements.
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • IMPROVEMENTS:
  • Add pause_after configuration argument to Powershell provisioner. GH-11792
  • HCP Packer data sources will now fail for revoked iterations to prevent building non-compliant images. GH-11854
  • BUG FIXES:
  • Add missing support for the env configuration argument in remote shell provisioners. GH-11819
  • The preinst and postrm user scripts, including the service configuration directives, have been removed from the Packer rpm installations packages, as Packer does not require a service user in order to run. GH-11831

New in Packer 1.8.1 (May 29, 2022)

New in Packer 1.8.0 (Mar 7, 2022)

  • NOTES:
  • Breaking Change: The packer-plugin-check(github.com/hashicorp/packer/cmd/packer-plugins-check) has been replaced by the packer-sdc plugin-check command. Plugin maintainers who may be using the packer-plugin-check as part of their release pipeline are encouraged to move to the packer-sdc command. As an alternative, maintainers can continue to use the packer-plugin-check by pinning the command to Packer 1.7.10. GH-11317
  • FEATURES:
  • New Command packer plugins command and subcommands to manage external plugins. GH-11553 GH-11625
  • IMPROVEMENTS:
  • core: Add a env argument to provisioner blocks that allow for setting a map of key/value pairs to inject prior to the execute_command. The env argument is an alternative to using environment_vars for setting environment variables, which has the added ability to read from Packer datasources. GH-11569
  • core: Bump version of go-getter to allow for downloading ISOs with PGP signed checksums. GH-11495
  • core: Docker images are now available for all supported architectures that the linux binaries are built for including arm, arm64, 386, and amd64 GH-11564 GH-11601 GH-11603
  • core: Packer's linux package service configs and pre/post install scripts are now available under .release/linux. GH-11601 GH-11603
  • core: Packer's linux packages are now available for all supported linux architectures including arm, arm64, 386, and amd64 GH-11564 GH-11601 GH-11603
  • core: The dockerfile that is used to build the packer docker image available at hashicorp/packer now lives in the root of this repo. The README that describes how to build the docker targets defined in the Dockerfile are available under ./release/docker/README.md. GH-11564 GH-11601 GH-11603
  • core: The packer-plugin-check command has been removed. Plugin maintainers should update their release configuration to use the packer-sdc plugin- check command. GH-11317
  • BUG FIXES:
  • core/hcl2: Fixes an issue preventing builds from pausing between provisioners when the --debug argument has been passed. GH-11537
  • core/hcl2: Fixes a data loss issue when merging an empty-object map to a non- empty map variable. GH-11566
  • core/hcl2: Fixes a regression where references to locals via the lookup function were failing to find defined keys. GH-11566
  • core/hcl2: Fixes an issue where HCP Packer build labels from the first completed build image were being copied to all images within the same build. GH-11574 GH-11584
  • core: HCP Packer datasources will no longer fail for iterations with scheduled revocations. GH-11619
  • core: Packer darwin builds now use macOS system DNS resolver for resolving hostnames.GH-9710 GH-11564

New in Packer 1.7.10 (Feb 3, 2022)

  • IMPROVEMENTS:
  • Print all locals errors when there is a circular error. [GH-11527](https://github.com/hashicorp/packer/pull/11527
  • BUG FIXES:
  • Prevent duplicate local block creation. GH-11534
  • Update psutils dep to avoid crash on Arm64 Macs. GH-11546

New in Packer 1.7.9 (Jan 20, 2022)

  • NOTES:
  • HCP Packer compatible plugins will contain a "HCP Packer Ready" badge at the top of on their documentation page. GH-11456
  • Packer core documentation now supports versioning on Packer.io. Users can select documentation for the version of Packer they are using. GH-11434
  • The hcp_packer_registry.labels argument has been deprecated in favor of the new bucket_labels argument to support custom user generated bucket labels. GH-11401
  • The code of the Outscale builder was handed over to the outscale org GH-11428
  • Version information for external plugins has been added as a badge to the plugin documentation. GH-11457
  • The following unmaintained external provisioner plugins have been archived: chef, converge, inspec, salt-masterless, puppet. More information on what this deprecation means for users can be found on the blog post - Plans to Archive Unmaintained Provisioner Plugins
  • PLUGINS:
  • External plugins have been pinned to the following versions. Please see their respective changelogs for details on plugin specific bug fixes and improvements.
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • [email protected] - CHANGELOG
  • IMPROVEMENTS:
  • core/hcl2: Add bucket_labels argument to the hcp_packer_registry block to support custom user generated bucket labels. GH-11401
  • core/hcl2: Add build_labels argument to the hcp_packer_registry block to support custom user generated build labels. GH-11401
  • core/hcl2: Allow for the use of variables and locals within a build block. GH-11421
  • core/hcl2: Allow for the use of variables and locals within a hcp_packer_registry block. GH-11421
  • core/website: Add HCP Packer Ready badge to supported plugins. GH-11456
  • core/website: Add Packer version selection toggle to Packer core documentation. GH-11434
  • core/website: Add version information to external plugin documentation. GH-11456
  • core/website: Extract external plugins documentation from packer.io/docs/ into packer.io/plugins. GH-11464
  • core: Add Packer user agent information to HCP Packer client requests. GH-11455
  • core: Bump github.com/hashicorp/packer-plugin-sdk from 0.2.9 to 0.2.11 to prevent HCP Packer builds from failing when no SourceImageID is provided.GH-11459
  • core: Bump to latest preview version of hashicorp/hcp-sdk-go to prevent HCP Packer builds from trying to update a revoked iteration. GH-11492
  • provisioner/powwershell: Tiny tweaks and fixes for the PowerShell provisioner. GH-11410
  • BUG FIXES:
  • core/hcl2: Allow the use of build.name for naming provisioners and post-processors. GH-11432
  • core/hcl2: Fix crash when a provisioner timeout argument is improperly formatted. GH-11382
  • core/hcl2: HCP Packer builds containing metadata not expected by Packer core will no longer fail the build. GH-11458
  • provisioner/file: File provisioner will now perform a noop when no source file content is specified; previously missing content resulted in a hard fail. GH-11349

New in Packer 1.7.8 (Oct 28, 2021)

  • BUG FIXES:
  • builder/amazon: Bump plugin to latest version to address a variable interpolation issue for builder run_tags. GH-11360

New in Packer 1.7.7 (Oct 20, 2021)

  • IMPROVEMENTS:
  • Improved support and user experience for HCP Packer registry - GH-11304 GH-11315 GH-11320 GH-11319
  • core: Show successful message upon successful packer validate - GH-11337
  • core: Allow use in top level source variables in a build.source block - GH-11318
  • core: Allow to use build variables in a post processor - GH-11323
  • packer init: better error handling. - GH-11330
  • Plugin Breakout:
  • The code of the Scaleway builder was handed over to the scaleway org GH-11298 GH-11296

New in Packer 1.7.6 (Sep 30, 2021)

  • BUG FIXES:
  • core: Update Go module dependencies to fix an issue preventing Go 1.16 users from installing the packer-plugins-check command via go install. [GH-11282]

New in Packer 1.7.5 (Sep 15, 2021)

  • FEATURES:
  • Future Scaffolding This release contains no-op refactors in preparation for connecting Packer to the HCP Packer Registry.
  • IMPROVEMENTS:
  • hcl2_upgrade: support strftime function. [GH-11220]
  • provisioner/file: add option to set content + tests. [GH-11209]
  • provisioner/inspec: Remove inspec provisioner from Packer core. [GH-11230]
  • provisioner/salt-masterless: Remove salt-masterless provisioner from Packer core to github.com/hashicorp/packer-plugin-salt/provisioner/salt- masterless. [GH-11229]
  • BUG FIXES:
  • builder/azure: Bump plugin to latest version to address a vulnerable dependency in azure-sdk-for-go. [GH-11162]
  • builder/googlecompute: Bump plugin to latest version to fix an issue when building an instance via an IAP tunnel. [GH-11235]
  • builder/ncloud: Bump ncloud dependency to fix dependency that got deleted from github [GH-11224]
  • core: Fix {{packer_version}} interpolation regression for HCL and JSON templates. [GH-11200]
  • hcl2_upgrade: Fix panic when file does not exist. [GH-11206]
  • hcl2_upgrade: special case: vsphere fix. [GH-11216]

New in Packer 1.7.4 (Jul 21, 2021)

  • BUG FIXES:
  • builder/outscale: Update Outscale multi-component plugin to fix go build failures due to missing Go module dependencies. [GH-11147]

New in Packer 1.7.3 (Jun 16, 2021)

  • IMPROVEMENTS:
  • We've extracted a majority of HashiCorp-maintained and community plugins from the Packer Core repository. They now live in their own multi-component plugin repositories. This is not a breaking change as we are enabling backwards compatibility in this release by vendoring components back into Packer. However, we encourage users to begin using packer init to download and install plugins to get the latest updates to each plugin, and to prepare for Packer v2.0 when we will stop vendoring the above plugins into the main Packer binary.
  • The following repositories have been created, and their components have been deleted from the "github.com/hashicorp/packer" repository.
  • "github.com/hashicorp/packer-plugin-alicloud" [GH-10932]
  • "github.com/hashicorp/packer-plugin-amazon" [GH-10800]
  • "github.com/hashicorp/packer-plugin-ansible" [GH-10912]
  • "github.com/hashicorp/packer-plugin-azure" [GH-10979]
  • "github.com/hashicorp/packer-plugin-chef" [GH-10921]
  • "github.com/hashicorp/packer-plugin-cloudstack" [GH-10934]
  • "github.com/hashicorp/packer-plugin-converge" [GH-10956]
  • "github.com/hashicorp/packer-plugin-digitalocean" [GH-10961]
  • "github.com/hashicorp/packer-plugin-docker" [GH-10695]
  • "github.com/hashicorp/packer-plugin-googlecompute" [GH-10890]
  • "github.com/hashicorp/packer-plugin-hcloud" [GH-10966]
  • "github.com/hashicorp/packer-plugin-hyperone" [GH-10949]
  • "github.com/hashicorp/packer-plugin-hyperv" [GH-10949]
  • "github.com/hashicorp/packer-plugin-inspec"
  • "github.com/hashicorp/packer-plugin-ionos-cloud"
  • "github.com/hashicorp/packer-plugin-jdcloud" [GH-10946]
  • "github.com/hashicorp/packer-plugin-linode" [GH-10947]
  • "github.com/hashicorp/packer-plugin-lxc" [GH-10965]
  • "github.com/hashicorp/packer-plugin-lxd" [GH-10965]
  • "github.com/hashicorp/packer-plugin-ncloud" [GH-10937]
  • "github.com/hashicorp/packer-plugin-openstack" [GH-10933]
  • "github.com/hashicorp/packer-plugin-oracle" [GH-10962]
  • "github.com/hashicorp/packer-plugin-outscale" [GH-10941]
  • "github.com/hashicorp/packer-plugin-parallels" [GH-10936]
  • "github.com/hashicorp/packer-plugin-profitbricks" [GH-11084]
  • "github.com/hashicorp/packer-plugin-proxmox" [GH-10930]
  • "github.com/hashicorp/packer-plugin-puppet" [GH-10943]
  • "github.com/hashicorp/packer-plugin-qemu" [GH-10929]
  • "github.com/hashicorp/packer-plugin-salt"
  • "github.com/hashicorp/packer-plugin-scaleway" [GH-10939]
  • "github.com/hashicorp/packer-plugin-tencentcloud" [GH-10967]
  • "github.com/hashicorp/packer-plugin-triton" [GH-10963]
  • "github.com/hashicorp/packer-plugin-ucloud" [GH-10953]
  • "github.com/hashicorp/packer-plugin-vagrant" [GH-10960]
  • "github.com/hashicorp/packer-plugin-virtualbox" [GH-10910]
  • "github.com/hashicorp/packer-plugin-vmware" [GH-10920]
  • "github.com/hashicorp/packer-plugin-vsphere" [GH-10896]
  • "github.com/hashicorp/packer-plugin-yandex" [GH-10970]
  • The following components will not be removed from the main packer binary:
  • null builder
  • file builder
  • breakpoint provisioner
  • file provisioner
  • powershell provisioner
  • shell provisioner
  • shell-local provisioner
  • sleep provisioner
  • windows-restart provisioner
  • windows-shell provisioner
  • artifice post-processor
  • checksum post-processor
  • compress post-processor
  • manifest post-processor
  • shell-local post-processor
  • Bug Fixes:
  • builder/azure: Add keep_os_disk parameter to control OS disk deletion [GH-10045]
  • builder/azure: Stop SIG timout from being overridden by PollingDuration [GH-10816]
  • builder/azure: Support shared image gallery storage account type [GH-10863]
  • builder/proxmox: Proxmox builder use ipv4 address instead of always ipv6. [GH-10858]
  • core/hcl2_upgrade: Allow hcl2_upgrade continue with unknown builders. [GH-11049]
  • core/hcl2_upgrade: Improve regex to fix escaping on split function. [GH-11083]
  • core/hcl: Fix Invalid provisioner pause_before panic [GH-10978]
  • core: HCL "index" function now actually returns the index of the element [GH-11008]
  • core: Implemented DEFAULT_NAME handling for datasource plugins [GH-11026]
  • Enhancements:
  • builder/azure: Added custom nicname and osdiskname [GH-10938]
  • builder/azure: Add support for shared image gallery storage account type [GH-10863]
  • builder/digitalocean: support ecdsa, ed25519, dsa temporary key types. [GH-10856]
  • builder/ncloud: Support ncloud vpc version [GH-10870]
  • core/fmt: When reading from stdin packer fmt will output the contents of the formatted file even if the input was already formatted. [GH-11047]
  • core/hcl: HCL variables are now supported within the name, only, except, and keep_input_artifact fields for post-processor blocks. [GH-11094]
  • core/hcl: Running packer build with an -only or -exclude flag will now inform the user if no match was found. [GH-11050]
  • post-processor/compress: Add bzip2 support to post-processor [GH-10867]
  • post-processor/googlecompute-import: Add Image Storage Locations field [GH-10864]
  • Removed the golang "vendor" directory in favor of go modules. This should not affect end users. [GH-10916]