Packer v1.6.1 Release Notes

Release Date: 2020-07-30 // over 1 year ago
  • BACKWARDS INCOMPATABILITIES:

    • ๐Ÿ— HCL: builder/vsphere: Add option to add a xhci/usb3 controller; changes controller value to an array of strings. [GH-9574]
    • HCL: New HCL-only post-processors block to run chained post-processors after a build [GH-9638]. Before this, defining multiple post-processor blocks after provisioning steps would run them sequentially, now doing this makes them start from the build artifact. To queue post-processors you now have to define them in a post-processors block. [GH-9638]
    • ๐Ÿ›  post-processor/vSphere: We have fixed a bug in the ovftool URL encoding. This may mean that you have performed an encoding workaround that is no longer necessary. [GH-9589]

    ๐Ÿ”‹ FEATURES:

    • ๐Ÿ†• New post-processor Yandex Import [GH-9553]

    ๐Ÿ‘Œ IMPROVEMENTS:

    • ๐Ÿ— builder/amazon-ebs: Wrap CreateImage call in a retry to account for eventual consistency [GH-9579]
    • ๐Ÿ— builder/azure: Disable SSH password authentication unless password is explicitly specified. [GH-9603]
    • ๐Ÿ— builder/docker: Add options for --cap-add, --cap-drop, --tmpfs, --device [GH-9565]
    • ๐Ÿ— builder/file: Create parent directories of target file, if they don't exist. [GH-9452]
    • builder/googlecompute: Add wrap_startup_script configuration option to allow the disabling of Packer's startup script wrapper [GH-9505]
    • builder/googlecompute: Add support for oslogin via the use_os_login configuration option [GH-9339]
    • ๐Ÿ— builder/googlecompute: Make IAP tunnel timeout configurable. [GH-9545]
    • ๐Ÿ— builder/googlecompute: Support using WinRM over an IAP tunnel [GH-9610]
    • ๐Ÿ— builder/hyper-v: Include secure boot template in box.xml [GH-9552]
    • ๐Ÿ— builder/hyperone: Add support for custom username in vm creation. [GH-9497]
    • ๐Ÿ— builder/hyperone: Skip chroot device discovery. [GH-9489]
    • ๐Ÿ— builder/openstack: Bump gophercloud to latest version [GH-9573]
    • ๐Ÿ— builder/proxmox: Add option to disable KVM hardware virtualization in Proxmox builder [GH-9587]
    • ๐Ÿ— builder/proxmox: Add support for multiple NIC packet queues [GH-9597]
    • ๐Ÿ— builder/proxmox: Enable Proxmox builder to toggle the firewall parameter for network interfaces. [GH-9487]
    • โšก๏ธ builder/proxmox: Update Proxmox storagePoolTypes [GH-9418]
    • ๐Ÿ— builder/qemu: Add 'cdrom_interface' option to QEMU builder [GH-9483]
    • builder/tencentcloud: Add source_image_name to support getting source image by name [GH-9619]
    • โšก๏ธ builder/tencentcloud: Update cvm root disk type to CLOUD_PREMIUM [GH-9663]
    • ๐Ÿ— builder/ucloud: New access config options and run config options. [GH-9466]
    • ๐Ÿ— builder/vsphere-clone: Add boot_command support to vsphere-clone builder, including support for starting an HTTP server
    • ๐Ÿ— builder/vsphere-clone: Add vapp configuration option [GH-9507]
    • ๐Ÿ— builder/vsphere: Add ability to define multiple disk controllers [GH-9519]
    • ๐Ÿ— builder/vsphere: Add boot_command support to vsphere-clone builder. [GH-9397]
    • builder/vsphere: Add content_library_destination to import VM template to a Content Library [GH-9551]
    • builder/vsphere: Add force_bios_setup configuration option [GH-9563]
    • ๐Ÿ— builder/vsphere: Add option to add a xhci/usb3 controller [GH-9574]
    • ๐Ÿ— builder/vsphere: Create vm output folders if they don't exist [GH-9402]
    • ๐Ÿ— builder/vsphere: Fix file size descriptor when exporting OFV [GH-9568]
    • ๐Ÿ— builder/vsphere: Look at all available IPs in the waiting for IP loop. [GH-9450]
    • ๐Ÿ— builder/vsphere: Match network to host when multiple networks are found [GH-9556]
    • โšก๏ธ builder/vsphere: Update vsphere boot_command to bring it in line with other builders' boot_command functionality. [GH-9406]
    • ๐Ÿ— builder/vsphere: Use datacenter inventory path for find folder [GH-9390]
    • builder/vsphere: Use value from "ip_wait_address" option to determine the default for the http server IP [GH-9441]
    • builder/yandex: Allow set min_disk_size for an image.
    • ๐Ÿ— builder/yandex: Support authentication by Service Account on instance [GH-9383]
    • builder/yandex: yandex: Add new property min_disk_size of built image [GH-9594]
    • ๐Ÿ‘ communicator/ssh: Add support for OpenSSH certificate signing [GH-9521]
    • communicator/ssh: Allow users to provide a list of ciphers that they want Packer to support. [GH-9453]
    • ๐Ÿ— core/hcl2: Add possibility to name singular build.source blocks to differentiate their output and to filter on them [GH-9490]
    • core/hcl2: Add the "inspect" command for hcl2 configs. [GH-9468]
    • ๐Ÿ— core/hcl2: HCL configs now respect only/except using build names instead of types. [GH-9454]
    • core/hcl: Allow use of keep_input_artifact in post processors. [GH-9477]
    • ๐Ÿ— core/hcl: Share build info with Provisioner and Post-Processor via HCL2 variables [GH-9444] [GH-9534] [GH-9622]
    • core: Add on-error flag option to run error-cleanup-provisioner [GH-9429]
    • core: communicator/ssh: Add new ssh_key_exchange_algorithms option to supply custom key exchange algorithms in SSH client [GH-9634]
    • โ™ป๏ธ core: refactor initialization out from Packer core to allow validate --syntax-only to no error when a variable is not set [GH-9627]
    • ๐Ÿ— hcl2: Handle uint64 buildvars [GH-9585]
    • post-processor/yandex-export: Allow users to utilize generated variables in templating. [GH-9555]
    • ๐Ÿ‘ post-processor/yandex-export: Support Authentication by Service Account Key file [GH-9379]
    • ๐Ÿ‘ post-processor/yandex-import: Support creating an Image based on another one [GH-9614]
    • ๐Ÿ‘ post-processor/yandex-import: Support using URL from yandex-export [GH-9601]
    • provisioner/ansible: Add template option for templating the inventory file lines [GH-9438]

    ๐Ÿ› BUG FIXES:

    • ๐Ÿ— builder/amazon: Change "Resource" field in temporary_iam_instance_profile_policy_document to be an array of strings, not just a single string. [GH-9509]
    • builder/amazon: HCL2: Add singular run_volume_tag block to ebs & ebssurrogate builders. [GH-9457]
    • ๐Ÿ— builder/amazon: Retry fetching block device mappings if empty. [GH-9480]
    • ๐Ÿ— builder/azure: Fix data disks URI. [GH-9467]
    • ๐Ÿ— builder/googlecompute: Fix issue with use_iap globally changing a user's gcloud project configuration, by temporarily setting "project" via project flag and not via gcloud config [GH-9662]
    • ๐Ÿ— builder/googlecompute: Fix the "secure boot" validation for uefi_compatible images. [GH-9371]
    • ๐Ÿ— builder/qemu: Only set up localhost port forwarding if skipnatmapping is false. [GH-9479]
    • ๐Ÿ— builder/vagrant: Fix box file validation for remote box files specified using source_path [GH-9660]
    • ๐Ÿ— builder/vagrant: Improve validation and error handling around synced_folder. Make sure that synced folder can be defined relative to Packer run directory, not the Vagrant output directory. [GH-9577]
    • ๐Ÿ— builder/virtualbox-vm: Fix regression where builder would fail if the vm had no snapshots. [GH-9435]
    • ๐Ÿ— builder/vmware-iso: Try checksum remote file instead of local file. [GH-9584]
    • ๐Ÿ— builder/vmware: Fix a race that occurred when parsing the network config. [GH-9387]
    • โšก๏ธ builder/vmware: Update vendor library, enabling retries on 502 errors [GH-9391]
    • ๐Ÿ— builder/vsphere-clone: Fix SSH public key injection for cloned templates [GH-9507]
    • ๐Ÿ— builder/vsphere: Clean up folder path to remove leading slashes. [GH-9542]
    • ๐Ÿ— builder/vsphere: Deduplicate where Firmware is set in vsphere-iso builder [GH-9557]
    • โฌ†๏ธ builder/vsphere: Fix vsphere ToolsSyncTime and ToolsUpgradePolicy [GH-9515]
    • ๐Ÿ— builder/vsphere: vSphere driver context is no longer cancelled when Packer context is cancelled. [GH-9576]
    • communicator/winrm: Add the "no_proxy" environment variable option to have winrm bypass the proxy set by the http_proxy or https_proxy environment vars, when connecting to the remote instance. [GH-9267]
    • ๐Ÿ–จ core: Do not print download progress bar if a machine-readable UI is chosen. [GH-9448]
    • ๐Ÿ‘ post-processor/amazon-import: Add support for retrying RequestLimitExceeded errors when importing an image [GH-9537]
    • ๐Ÿณ post-processor/docker-import: Fix crash when using docker-import with HCL. [GH-9670]
    • post-processor/vsphere: Fix password encoding in vsphere post-processor ovftool call [GH-9589]
    • ๐Ÿ“„ post-processor/yandex-export: Fix error handling and docs. [GH-9554]
    • provisioner/ansible-local: Fix agent auth in SSH communicator [GH-9639]
    • provisioner/ansible: Correct check for whether PackerHttpAddr is implemented or not [GH-9498]
    • ๐Ÿ— provisioner/ansible: Quote extra-var packer_build_name to handle names with spaces [GH-9590]