Packer v1.6.1 Release Notes
Release Date: 2020-07-30 // over 3 years 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 multiplepost-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 apost-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 viagcloud 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]