github dmacvicar/terraform-provider-libvirt v0.9.4

one day ago

New Features (Experimental)

  • Domain graceful shutdown on destroy — new destroy.shutdown.timeout option on libvirt_domain sends an ACPI shutdown signal and waits for the guest to power off cleanly before destroying it, instead of force-killing. Subject to change in future releases.
  • Pool lifecycle operation controls — new create and destroy blocks on libvirt_pool give explicit control over build, start, autostart, and backing storage deletion behavior during pool create/destroy. Subject to change in future releases.

Bug Fixes

  • NVRAM/TPM files deleted on domain update — updating a domain (e.g. changing memory) would undefine and re-define it, deleting NVRAM and TPM state files in the process. The provider now passes KEEP_NVRAM and KEEP_TPM undefine flags during updates. (#1232, @atopuzov)
  • capacity_unit not preserved on volume readback — specifying capacity_unit = "GiB" on a volume would cause "Provider produced inconsistent result after apply" on every apply, because libvirt normalizes to bytes in XML. The codegen now preserves the user's unit when the value was explicitly set. (#1253)
  • Dir pool backing path deleted on destroyterraform destroy of a dir pool was calling StoragePoolDelete which removed the backing directory. The default behavior now preserves the directory (matching virsh pool-destroy + pool-undefine), with an explicit destroy.delete = true override available. (#1285)

Dependencies

  • Bumped github.com/cloudflare/circl from 1.6.1 to 1.6.3. (#1284)

Contributors

Don't miss a new terraform-provider-libvirt release

NewReleases is sending notifications on new releases.