Packer v1.6.5 Release Notes

Release Date: 2020-10-30 // over 3 years ago
  • 🔋 FEATURES:

    • 🆕 New Builder(s): Proxmox builder has been split into two new builders proxmox-iso and promox-clone. See Proxmox Builder for more information on the builder. For users of the previous proxmox builder please use packer fix to migrate your templates to the new promox-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 to exclude_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 to base_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]

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 or azure_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 and external_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 a virtio-scsi-single controller with a scsi or virtio 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 a boot_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]