Packer v1.2.0 Release Notes

Release Date: 2018-02-09 // about 6 years ago
  • BACKWARDS INCOMPATIBILITIES:

    • ๐Ÿšš 3rd party plugins: We have moved internal dependencies, meaning your 3rd party plugins will no longer compile (however existing builds will still work fine); the work to fix them is minimal and documented in GH-5810. [GH-5810]
    • builder/amazon: The ssh_private_ip option has been removed. Instead, please use "ssh_interface": "private". A fixer has been written for this, which can be invoked with packer fix. [GH-5876]
    • ๐Ÿ— builder/openstack: Extension support has been removed. To use OpenStack builder with the OpenStack Newton (Oct 2016) or earlier, we recommend you use Packer v1.1.2 or earlier version.
    • ๐Ÿ core: Affects Windows guests: User variables containing Powershell special characters no longer need to be escaped.[GH-5376]
    • provisioner/file: We've made destination semantics more consistent across the various communicators. In general, if the destination is a directory, files will be uploaded into the directory instead of failing. This mirrors the behavior of rsync. There's a chance some users might be depending on the previous buggy behavior, so it's worth ensuring your configuration is correct. [GH-5426]
    • provisioner/powershell: Regression from v1.1.1 forcing extra escaping of environment variables in the non-elevated provisioner has been fixed. [GH-5515] [GH-5872]

    ๐Ÿ‘Œ IMPROVEMENTS:

    • ๐Ÿ†• New builder: ncloud for building server images using the NAVER Cloud Platform. [GH-5791]
    • ๐Ÿ†• New builder: oci-classic for building new custom images for use with Oracle Cloud Infrastructure Classic Compute. [GH-5819]
    • ๐Ÿ†• New builder: scaleway - The Scaleway Packer builder is able to create new images for use with Scaleway BareMetal and Virtual cloud server. [GH-4770]
    • builder/amazon: Add kms_key_id option to block device mappings. [GH-5774]
    • ๐Ÿ“‡ builder/amazon: Add skip_metadata_api_check option to skip consulting the amazon metadata service. [GH-5764]
    • ๐Ÿ— builder/amazon: Add Paris region (eu-west-3) [GH-5718]
    • ๐Ÿ— builder/amazon: Give better error messages if we have trouble during authentication. [GH-5764]
    • ๐Ÿ— builder/amazon: Remove Session Token (STS) from being shown in the log. [GH-5665]
    • ๐Ÿ— builder/amazon: Replace InstanceStatusOK check with InstanceReady. This reduces build times universally while still working for all instance types. [GH-5678]
    • ๐Ÿ— builder/amazon: Report which authentication provider we're using. [GH-5764]
    • ๐Ÿ“‡ builder/amazon: Timeout early if metadata service can't be reached. [GH-5764]
    • ๐Ÿ— builder/amazon: Warn during prepare if we didn't get both an access key and a secret key when we were expecting one. [GH-5762]
    • ๐Ÿ— builder/azure: Add validation for incorrect VHD URLs [GH-5695]
    • ๐Ÿ— builder/docker: Remove credentials from being shown in the log. [GH-5666]
    • ๐Ÿ— builder/google: Support specifying licenses for images. [GH-5842]
    • ๐Ÿ— builder/hyper-v: Allow MAC address specification. [GH-5709]
    • ๐Ÿ— builder/hyper-v: New option to use differential disks and Inline disk creation to improve build time and reduce disk usage [GH-5631]
    • ๐Ÿ— builder/qemu: Add Intel HAXM support to QEMU builder [GH-5738]
    • ๐Ÿ— builder/triton: Triton RBAC is now supported. [GH-5741]
    • โšก๏ธ builder/triton: Updated triton-go dependencies, allowing better error handling. [GH-5795]
    • ๐Ÿ— builder/vmware-iso: Add support for cdrom and disk adapter types. [GH-3417]
    • ๐Ÿ— builder/vmware-iso: Add support for setting network type and network adapter type. [GH-3417]
    • ๐Ÿ— builder/vmware-iso: Add support for usb/serial/parallel ports. [GH-3417]
    • ๐Ÿ— builder/vmware-iso: Add support for virtual soundcards. [GH-3417]
    • ๐Ÿ— builder/vmware-iso: More reliably retrieve the guest networking configuration. [GH-3417]
    • ๐Ÿ— builder/vmware: Add support for "super" key in boot_command. [GH-5681]
    • communicator/ssh: Add session-level keep-alives [GH-5830]
    • communicator/ssh: Detect dead connections. [GH-4709]
    • core: Gracefully clean up resources on SIGTERM. [GH-5318]
    • ๐ŸŒฒ core: Improved error logging in floppy file handling. [GH-5802]
    • ๐Ÿ‘ core: Improved support for downloading and validating a uri containing a Windows UNC path or a relative file:// scheme. [GH-2906]
    • post-processor/amazon-import: Allow user to specify role name in amazon- import [GH-5817]
    • ๐Ÿณ post-processor/docker: Remove credentials from being shown in the log. [GH-5666]
    • ๐Ÿ”€ post-processor/google-export: Synchronize credential semantics with the Google builder. [GH-4148]
    • ๐Ÿ‘ post-processor/vagrant: Add vagrant post-processor support for Google [GH-5732]
    • post-processor/vsphere-template: Now accepts artifacts from the vSphere post- processor. [GH-5380]
    • provisioner/amazon: Use Amazon SDK's InstanceRunning waiter instead of InstanceStatusOK waiter [GH-5773]
    • provisioner/ansible: Improve user retrieval. [GH-5758]
    • provisioner/chef: Add support for 'trusted_certs_dir' chef-client configuration option [GH-5790]
    • ๐Ÿ‘ provisioner/chef: Added Policyfile support to chef-client provisioner. [GH-5831]

    ๐Ÿ› BUG FIXES:

    • ๐Ÿ— builder/alicloud-ecs: Attach keypair before starting instance in alicloud builder [GH-5739]
    • ๐Ÿ— builder/amazon: Fix tagging support when building in us-gov/china. [GH-5841]
    • ๐Ÿ— builder/amazon: NewSession now inherits MaxRetries and other settings. [GH-5719]
    • ๐Ÿ— builder/virtualbox: Fix interpolation ordering so that edge cases around guest_additions_url are handled correctly [GH-5757]
    • ๐Ÿ— builder/virtualbox: Fix regression affecting users running Packer on a Windows host that kept Packer from finding Virtualbox guest additions if Packer ran on a different drive from the one where the guest additions were stored. [GH-5761]
    • ๐Ÿ— builder/vmware: Fix case where artifacts might not be cleaned up correctly. [GH-5835]
    • ๐Ÿ— builder/vmware: Fixed file handle leak that may have caused race conditions in vmware builder [GH-5767]
    • communicator/ssh: Add deadline to SSH connection to prevent Packer hangs after script provisioner reboots vm [GH-4684]
    • communicator/winrm: Fix issue copying empty directories. [GH-5763]
    • ๐Ÿ‘ provisioner/ansible-local: Fix support for --extra-vars in extra_arguments. [GH-5703]
    • ๐Ÿ›  provisioner/ansible-remote: Fixes an error where Packer's private key can be overridden by inherited ansible_ssh_private_key options. [GH-5869]
    • 0๏ธโƒฃ provisioner/ansible: The "default extra variables" feature added in Packer v1.0.1 caused the ansible-local provisioner to fail when an --extra-vars argument was specified in the extra_arguments configuration option; this has been fixed. [GH-5335]
    • provisioner/powershell: Regression from v1.1.1 forcing extra escaping of environment variables in the non-elevated provisioner has been fixed. [GH-5515] [GH-5872]