Open laimison opened 3 years ago
thx @laimison for issue.
I think we need a way to update the domains disks without forcing its recreation.
For now I have added this block:
# Attach HD
resource "null_resource" "example-mount-hd" {
provisioner "local-exec" {
command = "virsh attach-disk server-1 --target vdx --source /apphd/prod/kvm/storage/example-1-volume-hd.qcow2 --persistent --driver qemu --subdriver qcow2 --targetbus virtio"
}
}
So it confirms that only attachment is missing if that option can be used in provider's logic.
Related to #1069
System Information
Linux distribution
Ubuntu 18.04.4 LTS
Terraform version
Terraform v0.12.29
Provider and libvirt versions
main.tf - works fine, applied this and was using VM in prod
When I add additional HD data disk:
terraform plan
wants to destroy virtual machine which is not desired behaviour:How can I add additional disk to the system which cannot be rebuilt?
Many thanks