Packer v1.4.4 Release Notes

Release Date: 2019-10-01 // 17 days ago
  • 👌 IMPROVEMENTS:

    ** 🆕 new core feature** Error cleanup provisioner [GH-8155]

    • builder/amazon: Add ability to set run_volume_tags [GH-8051]
    • 🏗 builder/amazon: Add AWS API call reties on AMI prevalidation [GH-8034]
    • ♻️ builder/azure: Refactor client config [GH-8121]
    • 🏗 builder/cloudstack: New step to detach iso. [GH-8106]
    • 🏗 builder/googlecompute: Fail fast when image name is invalid. [GH-8112]
    • 🏗 builder/googlecompute: Users can now query Vault for an Oauth token rather than setting an account file [GH-8143]
    • 🏗 builder/hcloud: Allow selecting image based on filters [GH-7945]
    • 🏗 builder/hyper-v: Decrease the delay between Hyper-V VM startup and hyper-v builder's ability to send keystrokes to the target VM. [GH-7970]
    • 🏗 builder/openstack: Store WinRM password for provisioners to use [GH-7940]
    • builder/proxmox: Shorten default boot_key_interval to 5ms from 100ms [GH-8088]
    • 🏗 builder/proxmox: Allow running the template VM in a Proxmox resource pool [GH-7862]
    • 🏗 builder/ucloud: Make ucloud builder's base url configurable [GH-8095]
    • 🏗 builder/virtualbox-vm: Make target snapshot optional [GH-8011] [GH-8004]
    • 🏗 builder/vmware: Allow user to attach floppy files to remote vmx builds [GH-8132]
    • 🏗 builder/yandex: Add ability to retry API requests [GH-8142]
    • 🏗 builder/yandex: Support GPU instances and set source image by name [GH-8091]
    • 👍 communicator/ssh: Support for SSH port tunneling [GH-7918]
    • core: Add a new floppy_label option [GH-8099]
    • core: Added version compatibility to console command [GH-8080]
    • post-processor/vagrant-cloud: Allow blank access_token for private vagrant box hosting [GH-8097]
    • post-processor/vagrant-cloud: Allow use of the Artifice post-processor with the Vagrant Cloud post-processor [GH-8018] [GH-8027]
    • 🏗 post-processor/vsphere: Removed redundant whitelist check for builders, allowing users to use post-processor withough the VMWare builder [GH-8064]

    🐛 BUG FIXES:

    • 🏗 builder/amazon: Fix FleetID crash. [GH-8013]
    • 🏗 builder/amazon: Gracefully handle rate limiting when retrieving winrm password. [GH-8087]
    • 🏗 builder/amazon: Fix race condition in spot instance launching [GH-8165]
    • 🏗 builder/amazon: Amazon builders now respect ssh_host option [GH-8162]
    • ⚡️ builder/amazon: Update the AWS sdk to resolve some credential handling issues [GH-8131]
    • 🏗 builder/azure: Avoid a panic in getObjectIdFromToken [GH-8047]
    • 🏗 builder/googlecompute: Fix crash caused by nil account file. [GH-8102]
    • 🏗 builder/hyper-v: Fix when management interface is not part of virtual switch [GH-8017]
    • 🏗 builder/openstack: Fix dropped error when creating image client. [GH-8110]
    • 📇 builder/openstack: Fix race condition created when adding metadata [GH-8016]
    • 🏗 builder/outscale: Get SSH Host from VM.Nics instead of VM Root [GH-8077]
    • 🏗 builder/proxmox: Bump proxmox api dep, fixing bug with checking http status during boot command [GH-8083]
    • 🏗 builder/proxmox: Check that disk format is set when pool type requires it [GH-8084]
    • 🏗 builder/proxmox: Fix panic caused by cancelling build [GH-8067] [GH-8072]
    • 🏗 builder/qemu: Fix dropped error when retrieving version [GH-8050]
    • 🏗 builder/vagrant: Fix dropped errors in code and tests. [GH-8118]
    • 🏗 builder/vagrant: Fix provisioning boxes, define source and output boxes [GH-7957]
    • 🏗 builder/vagrant: Fix ssh and package steps to use source syntax. [GH-8125]
    • 🏗 builder/vagrant: Use GlobalID when provided [GH-8092]
    • 🏁 builder/virtualbox: Fix windows pathing problem for guest additions checksum download. [GH-7996]
    • 🏗 builder/virtualbox: LoadSnapshots succeeds even if machine has no snapshots [GH-8096]
    • 🏗 builder/vmware: fix dropped test errors [GH-8170]
    • core: Fix bug where sensitive variables contianing commas were not being properly sanitized in UI calls. [GH-7997]
    • core: Fix handling of booleans where "unset" is a value distinct from "false". [GH-8021]
    • ✅ core: Fix tests that swallowed errors in goroutines [GH-8094]
    • core: Fix bug where Packer could no longer run as background process [GH-8101]
    • core: Fix zsh auto-completion [GH-8160]
    • ⚠ communicator/ssh: Friendlier message warning user that their creds may be wrong [GH-8167]
    • 0️⃣ post-processor/amazon-import: Fix non-default encryption. [GH-8113]
    • post-processor/vagrant-cloud: Fix dropped errors [GH-8156]
    • provisioner/ansible: Fix provisioner dropped errors [GH-8045]

    BACKWARDS INCOMPATIBILITIES:

    • 🗄 core: "sed" template function has been deprecated in favor of "replace" and "replace_all" functins [GH-8119]

Previous changes from v1.4.3

  • 👌 IMPROVEMENTS:

    • 🆕 new builder UCloud builder [GH-7775]
    • 🆕 new builder Outscale [GH-7459]
    • 🆕 new builder VirtualBox Snapshot [GH-7780]
    • 🆕 new builder JDCloud [GH-7962]
    • 🆕 new post-processor Exoscale Import post-processor [GH-7822] [GH-7946]
    • 🏗 build: Change Makefile to behave differently inside and outside the gopath when generating code. [GH-7827]
    • 🏗 builder/amazon: Don't calculate spot bids; Amazon has changed spot pricing to no longer require this. [GH-7813]
    • 🏗 builder/google: Add suse-byos-cloud to list of public GCP cloud image projects [GH-7935]
    • builder/openstack: New image_min_disk option [GH-7290]
    • builder/openstack: New option use_blockstorage_volume to set openstack image metadata [GH-7792]
    • 🏗 builder/openstack: Select instance network on which to assign floating ip [GH-7884]
    • 🏗 builder/qemu: Implement VNC password functionality [GH-7836]
    • 🏗 builder/scaleway: Allow removing volume after image creation for Scaleway builder [GH-7887]
    • 🏗 builder/tencent: Add run_tags to option to tag instance. [GH-7810]
    • 🏗 builder/tencent: Remove unnecessary image name validation check. [GH-7786]
    • 🏗 builder/tencent: Support data disks for tencentcloud builder [GH-7815]
    • 🏗 builder/vmware: Fix intense CPU usage because of poorly handled errors. [GH-7877]
    • communicator: Use context for timeouts, interruption in ssh and winrm communicators [GH-7868]
    • core: Change how on-error=abort is handled to prevent EOF errors that mask real issues [GH-7913]
    • 💻 core: Clean up logging vs ui call in step download [GH-7936]
    • core: New environment var option to allow user to set location of config directory [GH-7912]
    • 🚚 core: Remove obsolete Cancel functions from builtin provisioners [GH-7917]
    • post-processor/vagrant: Add option to allow box Vagrantfiles to be generated during the build [GH-7951]
    • 👍 provisioner/ansible: Add support for installing roles with ansible-galaxy [GH-7916
    • provisioner/salt-masterless: Modify file upload to handle non-root case. [GH-7833]

    🐛 BUG FIXES:

    • 🏗 builder/amazon: Add error to warn users of spot_tags regression. [GH-7989]
    • 🏗 builder/amazon: Allow EC2 Spot Fleet packer instances to run in parallel [GH-7818]
    • 🏗 builder/amazon: Fix failures and duplication in Amazon region copy and encryption step. [GH-7870] [GH-7923]
    • 🏗 builder/amazon: No longer store names of volumes which get deleted on termination inside ebssurrogate artifact. [GH-7829]
    • ⚡️ builder/amazon: Update aws-sdk-go to v1.22.2, resolving some AssumeRole issues [GH-7967]
    • 🏗 builder/azure: Create configurable polling duration and set higher default for image copies to prevent timeouts on successful copies [GH-7920]
    • 🏗 builder/digitalocean: increase timeout for Digital Ocean snapshot creation. [GH-7841]
    • 🏗 builder/docker: Check container os, not host os, when creating container dir default [GH-7939]
    • builder/docker: Fix bug where PACKER_TMP_DIR was created with root perms on linux [GH-7905]
    • 🏗 builder/docker: Fix file download hang caused by blocking ReadAll call [GH-7814]
    • 🏗 builder/google: Fix outdated oauth URL. [GH-7835] [GH-7927]
    • 🏗 builder/hyperv: Improve code for detecting IP address [GH-7880]
    • ⚡️ builder/ucloud: Update the api about stop instance to fix the read-only image build by ucloud-uhost [GH-7914]
    • builder/vagrant: Fix bug where source_path was being used instead of box_name when generating the Vagrantfile. [GH-7859]
    • 🏗 builder/virtualbox: Honor value of 'Comment' field in ssh keypair generation. [GH-7922]
    • 🏗 builder/vmware: Fix validation regression that occurred when user provided a checksum file [GH-7804]
    • 🏗 buildere/azure: Fix crash with managed images not published to shared image gallery. [GH-7837]
    • 🏗 communicator/ssh: Move ssh_interface back into individual builders from ssh communicator to prevent validation issues where it isn't implemented. [GH-7831]
    • console: Fix console help text [GH-7960]
    • 📜 core: Fix bug in template parsing where function errors were getting swallowed. [GH-7854]
    • core: Fix regression where a local filepath containing // was no longer properly resolving to /. [GH-7888]
    • core: Fix regression where we could no longer access isos on SMB shares. [GH-7800]
    • 🏗 core: Make ssh_host template option always override all builders' IP discovery. [GH-7832]
    • core: Regenerate boot_command PEG code [GH-7977]
    • 🛠 fix: clean up help text and fixer order to make sure all fixers are called [GH-7903]
    • 🗄 provisioner/inspec: Use --input-file instead of --attrs to avoid deprecation warning [GH-7893]
    • provisioner/salt-masterless: Make salt-masterless provisioner respect disable_sudo directive for all commands [GH-7774]