Open rishi-anand opened 2 years ago
Somewhat related. This functionality works as expected for domains with ignition but not for the underlying disk which means unless the domain is completely ephemeral recycling the domain without the underlying backing store is meaning-less.
Whenever there is a change in user-data, network-config etc, cloud-init gets replaced.
https://github.com/dmacvicar/terraform-provider-libvirt/blob/main/libvirt/resource_libvirt_cloud_init.go#L28-L32
But, if cloud-init is already finished for the domain then the domain won't get values from the new cloud-init disk until cloud-init gets triggered. Thus, the domain should also have
ForceNew: true
for cloud-init.