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 withpacker 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 withInstanceReady
. 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
inextra_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]