Packer v1.6.0 Release Notes
Release Date: 2020-06-09 // almost 4 years ago-
BACKWARDS INCOMPATIBILITIES:
๐ builder/vsphere-iso: The deprecated fields
network
,network_card
,disk_size
,disk_thin_provisioned
, anddisk_eagerly_scrub
have been removed. Runpacker fix template.json
to migrate an existing template [GH-9149]For all iso-based builders, the
iso_checksum_type
andiso_checksum_url
fields have been removed in favor of simply setting theiso_checksum
field. Use the packer fix command to update a config file. See the iso_checksum field docs to read more about this. [GH-8437]
๐ FEATURES:
- ๐ New post-processor Yandex Export [GH-9124]
- ๐ builder/amazon: Add SSM Session Manager as a SSH interface connection [GH-9082]
- ๐ builder/google: Implement iap proxy for googlecompute [GH-9105]
- ๐ HCL2/core: Add command/console support for HCL2 config files [GH-9359]
- ๐ HCL2/core: Add command/validate support for HCL2 config files [GH-9346]
- ๐ HCL2/core: it is now possible to set source fields from the
build
block [GH-9291]
๐ IMPROVEMENTS:
- ๐ builder/amazon: Added new
build
template function field: SourceAMICreationDate [GH-9277] - ๐ builder/azure-arm: Support User Assigned Managed Identity [GH-9293]
- ๐ builder/azure-chroot: Copy data disks between shared image galleries [GH-9323]
- ๐ builder/googlecompute: Changed default disk size. [GH-9071]
- ๐ builder/googlecompute: New option to specify storage location for GCP images [GH-9326]
- ๐ builder/qemu: Add support for using a network bridge [GH-9159]
- builder/qemu: Added
skip_nat_mapping
option to skip the communicator (SSH or WinRM) automatic port forward and use the guest port directly. [GH-9307] - builder/qemu: Replace deprecated
ssh_host_port_min
andssh_host_port_max
byhost_port_min
andhost_port_max
. [GH-9307] - ๐ builder/virtualbox: Add
output_filename
config option to allow user to set a custom filename instead of forcing it to be the same as vm_name. [GH-9174] - ๐ builder/vsphere: Add
floppy_label
option. [GH-9187] - builder/vsphere: Add
ip_wait_address
to allow packer to wait for an ip address that fits within the range (cidr address). [GH-9358] - ๐ builder/vsphere: Add
tools_sync_time
andtools_upgrade_policy
options to set time synchronization and automatic VMware Tools upgrade. [GH-9366] - ๐ป core/hcl: Enable "force", "debug", and "on-error" command line flags for hcl2 builds. [GH-9234]
- core/hcl: Enable only/except for provisioners and post-processors [GH-9357]
- ๐ core/hcl: Support named builds in HCL2 templates [GH-9245]
- ๐ core/interpolation: Add support for specifying a particular key to fetch from the AWS Secrets Manager [GH-9202] [GH-9286]
- ๐ core: HCL logs now display source type and source name (
type.name
) in logs to differentiate more easily who says what. [GH-9257] - โก๏ธ core: update consul and vault dependencies [GH-9205]
- โก๏ธ core: Update vendored "go-getter" library with checksum fixes.
- ๐ง core: Users can now configure the http bind address of the server launched to serve files from http_directory [GH-9313]
- ๐ core: When a template contains a deprecated option, Packer will now encourage
the user to call
packer fix
. [GH-9325] - ๐ณ post-processor/docker-push: Support pushing multiple tags [GH-9182]
- ๐ณ post-processor/docker-tag: Change field name of docker tag to "tags" instead of "tag" since it's a list. Keep "tag" for backwards compatibility. [GH-9183]
- ๐ provisioner/windows-restart: Display full hostname, instead of just the NetBIOS name [GH-9335]
๐ BUG FIXES:
- buidler/vsphere-iso: Fix bug validating iso_urls [GH-9321]
- โก๏ธ builder/azure-arm: Update runtime constants with a valid DataDiskName [GH-9251]
- ๐ builder/digitalocean: Use correct image type for Droplet creates. [GH-9212]
- ๐ builder/openstack: Don't error if metadata can't be set. Old versions of openstack don't support that API call. [GH-9198]
- ๐ builder/vagrant: Use absolute path for package_include files to prevent them from having to be relative to the output vagrant directory. [GH-9260]
- ๐ builder/virtualbox: Fix bug using checksum files. [GH-9101]
- ๐ builder/vmware: Fix ssh connection when the guest platform's dhcpcd switches the IP address in-between a build. [GH-9322]
- ๐ builder/vsphere-iso: Use the Datacenter's VmFolder call instead of manually generating folder path [GH-9342]
- ๐ builder/vsphere: Add option not to set host during datastore upload. [GH-9100
- ๐ builder/vsphere: Fix crash in the driver for an interface conversion of types.AnyType nil to types.ManagedObjectReference. [GH-9354]
- ๐ builder/vsphere: Fix iso config prepare being called incorrectly, which
caused
iso_url
field to fail. [GH-9197] - ๐ builder/yandex: Do not require 'gpu-standard-v1' platform_id for any GPU- based config. [GH-9356]
- core: Ensure HTTP server information
PackerHTTPIP
,PackerHTTPPort
, andPackerHTTPAddr
are available via thebuild
template engine for all supported builders [GH-9238] - ๐ core: Fix
iso_url
to accept SMB shared files UNC and windows network paths. [GH-8954] - core: Fix regression that broke use of pwd when retrieving the checksum from a file [GH-9129].
- post-processor/vagrant: Add "provider_override" template option to allow artifacts from the Artifice post-processor [GH-9239]
- ๐ post-processor/vsphere-template: Add VSphere builder's artifact to vsphere- template's supported types [GH-9146]
- โก๏ธ postprocessor/artifice: Update various core post-processors to accept artifacts from the Artifice post-processor [GH-9239]
- provisioner/ansible-remote: Fix the arg order to make sure that the playbook file is the last item in the call [GH-9279]
- provisioner/ansible: Ansible provisioner doesn't force ssh key checking if user wants to use password to connect instead. [GH-9350]
- ๐ provisioner/inspec: Fix build variables interpolation [GH-9262]
- provisioner/powershell: fix interpolation of execute_command in cleanup script call. [GH-9275]
- provisioner/powershell: Fix long-wait retry loop caused by cleanup logic [GH-9226]
- provisioner/salt-masterless: Ignore the CmdArgs field in hcl2 [GH-9290]