Adds basic support for managing a libvirt domain title property.
Possible further improvements:
[x] have a CustomDiff function that checks if a new title is valid (read: contains no newline characters) BEFORE attempting to replace a domain. Right now when the new title contains newlines the user can still attempt a replacement, the previous domain is destroyed and the new one fails to be created because the title is invalid.
No bueno.
[ ] do not force a replacement when the title changes and correctly update it in place. I think libvirt API has no function to update only the title property, so this may require directly updating the domain XML configuration and redefining the domain.
Related to https://github.com/dmacvicar/terraform-provider-libvirt/issues/1041
Adds basic support for managing a libvirt domain title property.
Possible further improvements:
[x] have a
CustomDiff
function that checks if a new title is valid (read: contains no newline characters) BEFORE attempting to replace a domain. Right now when the new title contains newlines the user can still attempt a replacement, the previous domain is destroyed and the new one fails to be created because the title is invalid. No bueno.[ ] do not force a replacement when the title changes and correctly update it in place. I think libvirt API has no function to update only the title property, so this may require directly updating the domain XML configuration and redefining the domain.