Packer v1.6.2 Release Notes
Release Date: 2020-08-27 // over 3 years ago-
๐ FEATURES:
- ๐ New command
hcl2_upgrade
is a JSON to HCL2 transpiler that allows users to transform an existing JSON configuration template into its HCL2 template equivalent. Please see hcl2_upgrade command docs for more details. [GH-9659]
๐ IMPROVEMENTS:
- ๐ builder/amazon: Add all of the custom AWS template engines to
build
template function for use by provisioners. [GH-9751] - ๐ builder/amazon: Add aws_polling config option to override env variables. [GH-9777]
- ๐ builder/azure: Add FreeBSD support to azure/chroot builder. [GH-9697]
- ๐ builder/vmware-esx: Add
network_name
option to vmware so that users can set a network without using vmx data. [GH-9718] - ๐ builder/vmware-vmx: Add additional disk configuration option. Previously only implemented for vmware-iso builder [GH-9815]
- builder/vmware: Add a
remote_output_directory option
so users can tell Packer where on a datastore to create a vm. [GH-9784] - ๐ builder/vmware: Add option to export to ovf or ova from a local vmware build [GH-9825]
- ๐ builder/vmware: Add progress tracker to vmware-esx5 iso upload. [GH-9779]
- ๐ builder/vsphere-iso: Add support for building on a single ESXi host [GH-9793]
- ๐ builder/vsphere: Add new
directory_permission
config export option. [GH-9704] - ๐ builder/vsphere: Add option to import OVF templates to the Content Library [GH-9755]
- ๐ builder/vsphere: Add step and options to customize cloned VMs. [GH-9665]
- โก๏ธ builder/vsphere: Update
iso_paths
to support reading ISOs from Content Library paths [GH-9801] - core/hcl: Add provisioner "override" option to HCL2 templates. [GH-9764]
- core/hcl: Add vault integration as an HCL2 function function. [GH-9746]
- ๐ core: Add colored prefix to progress bar so it's clearer what build each progress bar belongs to. [GH-9780]
- ๐ core: Ui now pretty prints build durations. [GH-9749]
- ๐ core: When a build is cancelled, Packer will skip postprocessors gracefully rather than failing them. [GH-9720]
- ๐ integrations/secretsmanager: Add support for plaintext non-key/pair secrets. [GH-9773]
- ๐จ post-processor/vsphere: Improve UI to catch bad credentials and print errors. [GH-9649]
- provisioner/ansible-remote: Add
ansible_ssh_extra_args
so users can specify extra arguments to pass to ssh [GH-9821] - ๐ provisioner/file: Clean up, bugfix, and document previously-hidden
sources
option. [GH-9725] [GH-9735] - provisioner/salt-masterless: Add option to option to download community SaltStack formulas. [GH-9726]
๐ BUG FIXES:
- ๐ build: Fix bug in code generator that caused generation to fail in nested packer/packer dirs [GH-9728]
- ๐ build: Fix Makefile so that default target doesn't crash and creates dev binaries. [GH-9706]
- ๐พ builder/amazon-ebssurrogate: Make skip_save_build_region option work in the ebssurrogate builder, not just the ebs builder. [GH-9666]
- ๐ builder/amazon: Add retry logic to the spot instance creation step to handle "Invalid IAM Instance Profile name" errors [GH-9810]
- โก๏ธ builder/amazon: Update the
aws_secretsmanager
function to read from the AWS credentials file for obtaining default region information; fixes the 'MissingRegion' error when AWS_REGION is not set [GH-9781] - ๐ builder/file: Make sure that UploadDir receives the interpolated destination. [GH-9698]
- ๐ builder/googlecompute: Fix bug where startup script hang would cause export to hang. [GH-9708]
- ๐ builder/hyperv: Send boot command in small chunks to make it more stable. [GH-9765]
- ๐ builder/scaleway: Fix config issue that made scaleway builder fail when used with HCL2 config. [GH-9677]
- ๐ builder/vmware: Fully destroy vm if it was cancelled or errored. This will make orphaned vms easier to destroy through vCenter. [GH-9782]
- ๐ builder/vsphere: Fix
alt
,ctrl
, andshift
keypresses in the boot_command. [GH-9702] [GH-9739] - ๐ builder/vsphere: Fix bug where Packer timed out if two interfaces were defined but only one had an available IP. [GH-9748]
- ๐ builder/vsphere: Fix the configuration_parameters option so that it is always applied, not just when the tool sync policy is set. [GH-9713]
- communicator: Fix
pause_before_connect
option to force a reconnect after the pause. [GH-9772] - core: Make
max_retries
provisioner option a string to allow variable interpolation. [GH-9673] - 0๏ธโฃ post-processor/vsphere-template: Fix ReregisterVM to default to true instead of false. [GH-9736]
- post-processor/yandex-export: Fix issue when validating region_name [GH-9814]
- ๐ provisioner/inspec: Fix the 'Unsupported argument; An argument named "command"' error when using the inspec provisioner in an HCL2 configuration [GH-9800]
- ๐ New command