Packer v1.6.5 Release Notes
Release Date: 2020-10-30 // about 4 years ago-
๐ FEATURES:
- ๐ New Builder(s): Proxmox builder has been split into two new builders
proxmox-iso
andpromox-clone
. See Proxmox Builder for more information on the builder. For users of the previousproxmox
builder please usepacker fix
to migrate your templates to the newpromox-iso
builder. [GH-9262]
๐ BUG FIXES:
- ๐ builder/amazon: SSM connection now recovers from reboots. [GH-10003]
- ๐ builder/azure-arm: Fix build failures due to the deletion of additional managed disks defined in "disk_additional_size". [GH-10163]
- builder/azure-chroot: Fix typo in option
exlude_from_latest
toexclude_from_latest
. Old name will still be respected. [GH-10034] - builder/googlecompute: Fix HCL image_encryption_key fields and use the same casing in JSON and HCL2 [GH-10173]
- ๐ builder/openstack: Fix source image validation regression when using filters. [GH-10065]
- ๐ builder/proxmox: Fix unhandled buildvar type for HCL2 enabled build templates. [GH-10154]
- ๐ builder/qemu: Fix a regression where Packer would not wait properly in step_shutdown when a null communicator was used. [GH-10178]
- ๐ builder/qemu: Fix crash in step_run of qemu when loading commhostport form the statebag in a situation where the communicator is none. [GH-10145]
- ๐ builder/vsphere-clone: Packer was not respecting the "destroy" flag set in the content library config, and always keeping the source vm. This has been fixed. [GH-10165]
- ๐ builder/vsphere: Ensure builds are able to continue when no communicator has
been specified
"communicator": "none"
. [GH-9964] - ๐ builder/vsphere: Fix CD uploads so that Packer does not try to delete a CD that was not successfully uploaded. [GH-10155]
- core/hcl: Hide sensitive variables from output. [GH-10031]
- core/hcl: Packer HCL's "Coalesce" function now behaves same way as Terraform's. [GH-10016]
- core: Fix artifact handling so that input artifacts are properly preserved in postprocessors that don't modify artifacts. [GH-9996]
- core: Fix pathing in cd_files to copy proper directory tree when user provided absolute paths. [GH-10022]
- provisioner/ansible: Ansible galaxy no longer forces use of collections in v1 files. [GH-10010]
๐ IMPROVEMENTS:
- ๐ builder/amazon-ebssurrogate: Apply snapshot tags at snapshot creation time. [GH-10150]
- ๐ builder/amazon: Add
io2
as a supported volume type. [GH-10102] - ๐ builder/amazon: Add support for source instance tenancy [GH-10085]
- ๐ builder/google: Add service account impersonation. [GH-9968] [GH-10054]
- builder/googlecompute: Add
skip_create_image
option. [GH-10115] - ๐ builder/googlecompute: Allow users to select the algorithm to use when generating temporary SSH keypair [GH-10111]
- ๐ builder/linode: Add
state_timeout
attribute to Linode builder. [GH-10128] - ๐ builder/oracle-oci: New option to specify image compartment separate from build compartment. [GH-10040]
- ๐ builder/oracle-oci: New option to specify boot volume size. [GH-10017]
- builder/oracle: Add
base_image_filter
option as alternative tobase_image_ocid
[GH-10116] - ๐ builder/outscale: Migrate to new Outscale SDK. [GH-10056]
- ๐ builder/proxmox: split Proxmox into proxmox-iso and proxmox-clone. [GH-9626] [GH-10166]
- ๐ builder/scaleway: Allow the user to use an image label (eg ubuntu_focal) instead of a hardcoded UUID on the Scaleway builder. [GH-10061]
- ๐ builder/vsphere: Skip iso download if hashed file is already present on remote datastore. [GH-10143]
- ๐ builder/yandex: Add support for IAM credentials in the token field and YC_TOKEN environment variable. [GH-10158]
- core/hcl: Add ability to set version restrictions [GH-10149]
- ๐ core/hcl: Add build.name variable so users can access build name in addition to source name. [GH-10114]
- core/hcl: Add consul_key function to HCL templates. [GH-10119]
- core/hcl: Add HCL2 aws_secretsmanager function [GH-10124]
- core/hcl: Add packer.version variable to hcl configs so users can access the Packer release version. [GH-10117]
- core: Let user provide type of generated ssh key instead of always doing ssh- rsa [GH-10101]
- ๐ New Builder(s): Proxmox builder has been split into two new builders
Previous changes from v1.6.4
-
๐ BUG FIXES:
- ๐ builder/amazon: Fix authentication issue when using instance profiles or assumed roles for loading session-derived credentials. [GH-10007]
- ๐ท builder/azure: Fix crash when using
azure_tag
orazure_tags
configuration options. [GH-10014] - builder/qemu: Ensure
qemu_img_args
are honored during the disk convert step. [GH-10001]
## 1.6.3 (September 25, 2020)
๐ IMPROVEMENTS:
- builder/amazon: Add
pause_before_ssm
option to pause for some time before establishing a Session Manager session; defaults to 10s. [GH-9988] - ๐ builder/amazon: Implement assume_role option that matches Terraform behavior. [GH-9981]
- ๐ builder/azure: Support publishing to a Shared Image Gallery with a different subscription id [GH-9875]
- builder/openstack: Add
external_source_image_url
andexternal_source_image_format
to support building images from external source URLs. [GH-9992] - ๐ builder/openstack: Include API requests and responses as part of the debug log output. [GH-9972]
- builder/oracle-oci: Add
create_vnic_details
option for launch details. [GH-9856] - ๐ builder/oracle-oci: Allow freeform and defined tags to be added to an instance. [GH-9802]
- ๐ builder/proxmox: Add
io_thread
option for supporting io threads when using avirtio-scsi-single
controller with ascsi
orvirtio
disk type. [GH-9969] - ๐ builder/proxmox: Add ability to specify interfaces for http_directory and VM. [GH-9874]
- ๐ builder/proxmox: Allow the mounting of multiple ISOs via the
cd_drive
option. [GH-9653] - ๐ builder/proxmox: Fix boot command special keys. [GH-9885]
- builder/qemu: Add
qemu_img_args
option to set special cli flags for calls to qemu-img [GH-9956] - builder/qemu: Add
skip_resize_disk
option to skip the resizing of QCOW2 images. [GH-9896] [GH-9860] - ๐ builder/qemu: Skip qemu-img convert on MacOS to prevent the creation of corrupt images QEMU #1776920 [GH-9949]
- ๐ builder/scaleway: Change default boottype to local. [GH-9853]
- โก๏ธ builder/scaleway: Update scaleway to use non-deprecated sdk. [GH-9902]
- builder/vmware: Add
vnc_over_websocket
to allow the sending of aboot_command
to hosts running ESXi 6.7 and above. [GH-9938] - ๐ builder/vmware: Allow user to set vmware tools source path. [GH-9983]
- ๐ builder/vsphere-clone: Add ability to set
mac_address
[GH-9930] - builder/vsphere-clone: Add floppy_files, cd_files, and iso_paths options. [GH-9963]
- ๐ builder/vsphere-iso: Add NVMe controller support. [GH-9880]
- ๐ builder/vsphere: Look for a default resource pool when root resource pool is not found. [GH-9809]
- ๐ core: Add support for running cygwin/msys2 based cd/iso creation tool [GH-9954]
- ๐ core: New
cd_files
option to mount iso for modern OSes which don't support floppies. [GH-9796] [GH-9919] [GH-9928] [GH-9932] [GH-9941] - HCL2: When the type of a variable is not known evaluate setting as a literal string instead of a variable name. [GH-9863]
- ๐ post-processor/vagrant: Support the use of template variables within Vagrantfile templates. [GH-9923]
- post-processor/yandex-import: Allow custom API endpoint. [GH-9850]
- ๐ provisioner/ansible: Add support for Ansible Galaxy Collections. [GH-9903]
๐ BUG FIXES:
- ๐ builder/amazon-ebs: Fix issue where retrying on invalid IAM instance profile error was creating multiple spot instances. [GH-9946]
- ๐ builder/amazon-ebssurrogate: Fix issue where builder defaults to AWS managed
key even when custom
kms_key_id
is set. [GH-9959] - โก๏ธ builder/amazon: Update ssm_driver log polling logic to prevent infinite loops when SSM driver is terminated outside of Packer. [GH-9991]
- ๐ builder/azure: Fix crash when using HCL2 configs. [GH-9984] [GH-9985]
- ๐ builder/qemu: Fix hardcoded lowerbound causing negative ports [GH-9905]
- ๐ builder/qemu: Skip compaction when backing file is used. [GH-9918]
- ๐ builder/scaleway: Add pre validate step to prevent the creation of multiple images with the same name. [GH-9840]
- ๐ builder/vmware-iso: Prevent the use of reserved SCSI ID 0:7 when attaching multiple disks. [GH-9940]
- ๐ builder/vsphere: Fix overly strict iso_path validation regex. [GH-9855]
- command/console: Prevent failure when there are unknown vars. [GH-9864]
- command/inspect: Allow unset variables in HCL2 and JSON. [GH-9832]
- ๐ป core: Prevent the UI progressbar from hanging and crashing when there is no TTY available. [GH-9974]
- ๐ core: Use $APPDATA over $HOME on Windows hosts when determining homedir. [GH-9830]
- post-processor/digitalocean-import: Fix crash caused by empty artifact.Files slice. [GH-9857]
- post-processor/yandex-export: Check for error after runner completes. [GH-9925]
- ๐ post-processor/yandex-export: Set metadata key to expected value on error. [GH-9849]
- post-processor/yandex-import: Fix S3 URL construct process. [GH-9931]