github dmacvicar/terraform-provider-libvirt v0.9.6

10 hours ago

Highlights

  • Added terraform import support for libvirt_domain using an existing domain UUID.
  • Added configurable shutdown timeout handling for domain updates that need to stop a running guest before redefine.
  • Improved readback preservation for optional nested objects to reduce unintended diffs.

What's Changed

Domain lifecycle and import

  • Add terraform import support for libvirt_domain by UUID, allowing Terraform state to be populated from an existing libvirt domain definition.
  • Add configurable update shutdown behavior so domain updates can request guest shutdown and wait with a configurable timeout before forcing a stop.
  • Add lifecycle tests covering the new shutdown timeout behavior during updates.

Readback and state preservation

  • Preserve optional nested objects on readback so unset nested state is not synthesized from libvirt defaults when the user did not configure it.
  • Move readback preservation behavior into code generation policy, making the preservation rules more consistent across generated conversions.
  • Add tests covering nested object preservation, CPU host-model preservation, and SPICE listen preservation.

Maintenance

  • Update google.golang.org/grpc from 1.75.1 to 1.79.3.
  • Refactor codegen overrides to use named field policies.

Contributors

Full Changelog

Full Changelog: v0.9.5...v0.9.6

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

NewReleases is sending notifications on new releases.