After the VM is bootstrapped, I would like to remove the cloud-init drive from it. Another scenario is to update the user_data_file, which also cases a force replacement of the VM.
Both because user_data_file_id is touched.
To Reproduce
Steps to reproduce the behavior:
Create a resource proxmox_virtual_environment_file and proxmox_virtual_environment_vm which references the env file in initialization.user_data_file_id
Remove initialization {} or update proxmox_virtual_environment_file content
See VM force replacement
Please also provide a minimal Terraform configuration that reproduces the issue.
Describe the bug
After the VM is bootstrapped, I would like to remove the cloud-init drive from it. Another scenario is to update the user_data_file, which also cases a force replacement of the VM.
Both because
user_data_file_id
is touched.To Reproduce
Steps to reproduce the behavior:
proxmox_virtual_environment_file
andproxmox_virtual_environment_vm
which references the env file ininitialization.user_data_file_id
initialization {}
or updateproxmox_virtual_environment_file
contentPlease also provide a minimal Terraform configuration that reproduces the issue.
and the output of
terraform|tofu apply
.Expected behavior
cloud-init device is removed without replacing VM or cloud-init config is updated without replacing VM.
Additional context Add any other context about the problem here.