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, and disk_eagerly_scrub have been removed. Run packer fix template.json to migrate an existing template [GH-9149]

    • For all iso-based builders, the iso_checksum_type and iso_checksum_url fields have been removed in favor of simply setting the iso_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 and ssh_host_port_max by host_port_min and host_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 and tools_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, and PackerHTTPAddr are available via the build 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]