Packer v1.6.2 Release Notes

Release Date: 2020-08-27 // over 3 years ago
  • ๐Ÿ”‹ 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, and shift 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]