Changelog History
Page 1
-
v1.6.5 Changes
October 30, 2020๐ FEATURES:
- ๐ New Builder(s): Proxmox builder has been split into two new builders
proxmox-iso
andpromox-clone
. See Proxmox Builder for more information on the builder. For users of the previousproxmox
builder please usepacker fix
to migrate your templates to the newpromox-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
toexclude_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 tobase_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]
- ๐ New Builder(s): Proxmox builder has been split into two new builders
-
v1.6.4 Changes
September 30, 2020๐ 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
orazure_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
andexternal_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 avirtio-scsi-single
controller with ascsi
orvirtio
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 aboot_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]
-
v1.6.3 Changes
September 25, 2020๐ release 1.6.3
-
v1.6.2 Changes
August 27, 2020๐ FEATURES:
- ๐ New command
hcl2_upgrade
is a JSON to HCL2 transpiler that allows users to transform an existing JSON configuration template into its HCL2 template equivalent. Please see hcl2_upgrade command docs for more details. [GH-9659]
๐ IMPROVEMENTS:
- ๐ builder/amazon: Add all of the custom AWS template engines to
build
template function for use by provisioners. [GH-9751] - ๐ builder/amazon: Add aws_polling config option to override env variables. [GH-9777]
- ๐ builder/azure: Add FreeBSD support to azure/chroot builder. [GH-9697]
- ๐ builder/vmware-esx: Add
network_name
option to vmware so that users can set a network without using vmx data. [GH-9718] - ๐ builder/vmware-vmx: Add additional disk configuration option. Previously only implemented for vmware-iso builder [GH-9815]
- builder/vmware: Add a
remote_output_directory option
so users can tell Packer where on a datastore to create a vm. [GH-9784] - ๐ builder/vmware: Add option to export to ovf or ova from a local vmware build [GH-9825]
- ๐ builder/vmware: Add progress tracker to vmware-esx5 iso upload. [GH-9779]
- ๐ builder/vsphere-iso: Add support for building on a single ESXi host [GH-9793]
- ๐ builder/vsphere: Add new
directory_permission
config export option. [GH-9704] - ๐ builder/vsphere: Add option to import OVF templates to the Content Library [GH-9755]
- ๐ builder/vsphere: Add step and options to customize cloned VMs. [GH-9665]
- โก๏ธ builder/vsphere: Update
iso_paths
to support reading ISOs from Content Library paths [GH-9801] - core/hcl: Add provisioner "override" option to HCL2 templates. [GH-9764]
- core/hcl: Add vault integration as an HCL2 function function. [GH-9746]
- ๐ core: Add colored prefix to progress bar so it's clearer what build each progress bar belongs to. [GH-9780]
- ๐ core: Ui now pretty prints build durations. [GH-9749]
- ๐ core: When a build is cancelled, Packer will skip postprocessors gracefully rather than failing them. [GH-9720]
- ๐ integrations/secretsmanager: Add support for plaintext non-key/pair secrets. [GH-9773]
- ๐จ post-processor/vsphere: Improve UI to catch bad credentials and print errors. [GH-9649]
- provisioner/ansible-remote: Add
ansible_ssh_extra_args
so users can specify extra arguments to pass to ssh [GH-9821] - ๐ provisioner/file: Clean up, bugfix, and document previously-hidden
sources
option. [GH-9725] [GH-9735] - provisioner/salt-masterless: Add option to option to download community SaltStack formulas. [GH-9726]
๐ BUG FIXES:
- ๐ build: Fix bug in code generator that caused generation to fail in nested packer/packer dirs [GH-9728]
- ๐ build: Fix Makefile so that default target doesn't crash and creates dev binaries. [GH-9706]
- ๐พ builder/amazon-ebssurrogate: Make skip_save_build_region option work in the ebssurrogate builder, not just the ebs builder. [GH-9666]
- ๐ builder/amazon: Add retry logic to the spot instance creation step to handle "Invalid IAM Instance Profile name" errors [GH-9810]
- โก๏ธ builder/amazon: Update the
aws_secretsmanager
function to read from the AWS credentials file for obtaining default region information; fixes the 'MissingRegion' error when AWS_REGION is not set [GH-9781] - ๐ builder/file: Make sure that UploadDir receives the interpolated destination. [GH-9698]
- ๐ builder/googlecompute: Fix bug where startup script hang would cause export to hang. [GH-9708]
- ๐ builder/hyperv: Send boot command in small chunks to make it more stable. [GH-9765]
- ๐ builder/scaleway: Fix config issue that made scaleway builder fail when used with HCL2 config. [GH-9677]
- ๐ builder/vmware: Fully destroy vm if it was cancelled or errored. This will make orphaned vms easier to destroy through vCenter. [GH-9782]
- ๐ builder/vsphere: Fix
alt
,ctrl
, andshift
keypresses in the boot_command. [GH-9702] [GH-9739] - ๐ builder/vsphere: Fix bug where Packer timed out if two interfaces were defined but only one had an available IP. [GH-9748]
- ๐ builder/vsphere: Fix the configuration_parameters option so that it is always applied, not just when the tool sync policy is set. [GH-9713]
- communicator: Fix
pause_before_connect
option to force a reconnect after the pause. [GH-9772] - core: Make
max_retries
provisioner option a string to allow variable interpolation. [GH-9673] - 0๏ธโฃ post-processor/vsphere-template: Fix ReregisterVM to default to true instead of false. [GH-9736]
- post-processor/yandex-export: Fix issue when validating region_name [GH-9814]
- ๐ provisioner/inspec: Fix the 'Unsupported argument; An argument named "command"' error when using the inspec provisioner in an HCL2 configuration [GH-9800]
- ๐ New command
-
v1.6.1 Changes
July 30, 2020BACKWARDS 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]
-
v1.6.0 Changes
June 09, 2020BACKWARDS 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]
-
v1.5.6 Changes
May 01, 2020BACKWARDS INCOMPATIBILITIES:
- core/hcl2: HCL2 singular blocks: use key/value or name/value depending on how the service names things [GH-9078]
- core/hcl2: Maps are now treated as settable arguments as opposed to blocks.
For example
tags = {}
instead oftags {}
[GH-9035] - ๐
packer build
command: removed option to setparallel=false
, use-parallel-builds=1
for this.
๐ FEATURES:
๐ New Builder azure-dtl allows creation of devtestlabs images in Azure [GH-8987]
๐ New Core Feature provisioners now support a
max_retries
option that can be used for retrying a provisioner on error [GH-9061]๐ New Post-Processor:
yandex-export
Upload built image in Yandex Object Storage.
๐ IMPROVEMENTS:
- builder/azure-arm: Add
boot_diag_storage_account
option for enabling boot diagnostics on a virtual machine [GH-9053] - ๐ builder/azure-arm: Add support for setting custom resource names [GH-9028]
- ๐ builder/azure-arm: Data disk names are now randomly generated [GH-8986]
- ๐ builder/azure: Add shared image destination for azure-chroot [GH-9021]
- ๐ builder/azure: Add shared image source for chroot builder [GH-9070]
- ๐ builder/google: Add support for custom shielded images [GH-8970]
- builder/google: Allow
source_image_project_id
to be a list of several projects to search. [GH-8679] - ๐ builder/hyperv: Add
boot_order
option to override the default boot order [GH-9046] - ๐ builder/oracle-oci: Allow Instance Principal Auth for Oracle OCI builder [GH-8893]
- โก๏ธ builder/oracle-oci: Update Oracle SDK. [GH-9104]
- ๐ builder/proxmox: Add ability to add a cloud-init drive [GH-9045]
- ๐ builder/vsphere: Add
disable_shutdown
option to support manual vm shutdown over the default automatic shutdown step [GH-9095] - ๐ builder/vsphere: Add
vgpu_profile
option for specifying vGPU profiles [GH-8946] - ๐ builder/vsphere: Add support for EFI Secure Boot [GH-9018]
- ๐ builder/vsphere: Add support for specifying vGPU profiles [GH-8946]
- builder/yandex: Add
target_image_folder_id
option for changing the folder where a built image will be saved to [GH-9080] - ๐ core/hcl2: HCL mode builds now honor -only and -except options [GH-8947]
- ๐ core/hcl2: Set
packer_build_name
andpacker_builder_type
variables for builder provisioners and post-processors [GH-8956] - core/HCL: HCL mode now honors -only and -except options. [GH-8947]
- core: New template function: aws_secretsmanager [GH-9099]
- ๐ provisioner/ansible: Add
use_proxy
option to not use localhost proxy adapter. Removes need for ansible connection_plugin when using WinRM. [GH-8625] - provisioner/powershell: Add
debug_mode
option to help with debugging generated scripts [GH-8996] - ๐ provisioner/powershell: Add cleanup step to remove temporarily created
scripts; cleanup can be skipped by setting the
skip_clean
option [GH-8908]
๐ BUG FIXES:
- builder/amazon: Fix bug with
launch_block_device_mappings
in spot instances. [GH-8945] - ๐ builder/azure-arm: Fix issue where managed image builds were using a
different
location
then what was specified in the build configuration [GH-9068] - ๐ builder/azure: Allow Managed Data Disks to be used with Azure Shared Image Gallery [GH-8912]
- ๐ builder/azure: Fix SSH connection for temporary admin users specified in
ssh_username
[GH-9103] - ๐ builder/osc: Make compliant with oAPI spec for Outscale osc-bsu builder [GH-9093]
- ๐ builder/qemu: Remove
net_device
pre-validation [GH-8979] - โก๏ธ builder/tencentcloud: Update builder to handle the InstanceOperationInProgress error [GH-9069]
- ๐ builder/vsphere-iso: disk_size is no longer required if storage is defined [GH-8975]
- ๐ builder/vsphere: Add exported files to VSphere artifact [GH-9020]
- ๐ builder/vsphere: Fix issue where -force is not working with vsphere builders [GH-9039]
- core: Fix crash in wrapperreadline helper when calling
os.NewFile
on unknown file descriptor [GH-9037] - core: Make sure CLI variables supersede variables from var files [GH-8964]
- provisioner/powershell: Fix integer decoding issue in the execution policy parser [GH-8997]
-
v1.5.5 Changes
March 01, 252020BACKWARDS INCOMPATIBILITIES:
- core: Interpolation of undefined variables will now error as expected, in previous versions variables were allowed to be set as a command line argument but that was because the validation was being ignored
๐ IMPROVEMENTS:
- ๐ builder/azure: Add support for configurable KeyVault SKU [GH-8879]
- builder/hyperv: Add
first_boot_device
setting to allow the selection of the initial device or device class used for booting the VM. [GH-8714] - ๐ builder/hyperv: Fix Hyper-V compacted disk size comparison [GH-8811]
- builder/openstack: Add new
image_auto_accept_members
option [GH-8931] - ๐ builder/proxmox: Add ability to specify vga adapter [GH-8892]
- ๐ builder/proxmox: Add onboot directive support [GH-8935]
- ๐ builder/tencentcloud: Show tencentcloud image id after copy to destination region. [GH-8763]
- builder/vmware-iso: Add
cleanup_remote_cache
config option to [GH-8917] - ๐ builder/vmware-iso: Do not perform dial test of NIC when ssh bastion is required [GH-8877]
- ๐ builder/vsphere-clone: Add ability to export VM to OVF file [GH-8764]
- ๐ builder/vsphere-iso: Add ability to define multiple disks. [GH-8787]
- ๐ builder/vsphere-iso: Add ability to export VM to OVF file [GH-8764]
- ๐ builder/vsphere-iso: Add support for eagerly zeroed / scrubbed disks. [GH-8756]
- ๐ builder/vsphere-iso: Add the remote iso first so that it is first in boot order, and clarify boot behavior. [GH-8732]
- ๐ communicator/ssh: Add flag to enable support for keyboard-interactive auth to connect bastion [GH-8847]
- ๐ core/hcl2: Add support for singular blocks [GH-8889]
- ๐ core/hcl2: Add support in HCL2 configs for dynamic blocks, document for loops and splat expressions [GH-8720]
- core/hcl2: Fix HCL2 local variables decoding to allow local usage within another local in the same locals block [GH-8755]
- core/hcl2: Import new replace and regex_replace funcs from go-cty + documentation [GH-8863]
- core: Enable hcl files as var files in HCL mode [GH-8882]
- ๐ core: Make "build" engine template variables SSHPublicKey and SSHPrivateKey strings [GH-8829]
๐ Bug Fixes:
- ๐ builder/azure: Fix
winrm_password
attribution and allow users to setwinrm_username
[GH-8928] - ๐ builder/azure: Fix azure key vault cleanup failure [GH-8905]
- ๐ builder/azure: Fix HCL2 bug that prevented Azure and other builders from loading properly. [GH-8785]
- ๐ builder/googlecompute: Fix WinRMPassword template engine. [GH-8890]
- ๐ builder/googlecompute: Replace deprecated "sshKeys" metadata with "ssh-keys" to fix SSH authentication issue [GH-8942]
- ๐ builder/proxmox: Add new validation to catch that template_name cannot contain spaces. [GH-8799]
- ๐ builder/proxmox: Bump proxmox-api-go to fix upstream bug where users hit open file limit. [GH-8800]
- ๐ builder/vagrant: Fix path validation in ssh config step. [GH-8826]
- ๐ builder/virtualbox-vm: Fix crash when VM has no snapshots. [GH-8906]
- ๐ builder/virtualbox: Remove all floppy controllers before adding a new one. [GH-8828]
- ๐ builder/vsphere-clone: Fix issue preventing the cloning of VMs with the same name in different folders [GH-8938]
- ๐ builder/vsphere-iso: Fix issue preventing the creation of VMs with the same name in different folders [GH-8938]
- ๐ builder/vsphere: Fix network object interface panic. [GH-8753]
- core/hcl2: Fix crash when an unset variable is used [GH-8837]
- ๐ core/hcl2: Fix logic for parsing literal value variables [GH-8834]
- core/hcl2: Make sure locals are evaluated only after variables are. [GH-8918]
- ๐ core: Fix "build" template engine interpolation for certain fields in certain provisioners. [GH-8771]
- core: Fix bug where user var recursion could fail intermittently when used with env vars [GH-8875]
- core: Interpolation of undefined variables will now error as expected
- ๐ plugins: Make plugin discovery stricter with respect to periods so that users can disable plugins by renaming the extension [GH-8735]
- provisioner/salt: Fix
no_exit_on_failure
config to work correctly as expected. [GH-9119] - provisioner/shell: "inline" config option is now a template engine. [GH-8883]
-
v1.5.4 Changes
February 14, 2020๐ no-change release to fix code-signing on OSX binaries. Since checksums for these binaries has changed, we are releasing a second time to prevent confusion.
-
v1.5.3 Changes
February 14, 2020๐ IMPROVEMENTS:
- ๐ builder/vsphere: Add ability to define multiple NICs for vsphere-iso [GH-8739]
- ๐ builder/vsphere: Add option to remove CD-ROM drives. [GH-8690]
- core: Add validation to catch when users accidentally add duplicate fields to template [GH-8725]
๐ Bug Fixes:
- core/hcl2: Fix template prepare/validation for HCL2 templates [GH-8742]
- ๐ core: Fix
build
template function interpolation [GH-8727]