-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent data disk destruction on mirror #821
Comments
I was trying to implement this change and hit a roadblock (I think was the same problem during the refactoring, but I'm not totally sure). This implementation returns an error:
Basically, we cannot use variables on lifecycle definition. Looks like this is a known issue in terraform [3][4], and one of the issues is opened since August 2015. So, our options are:
@moio what are your thought on this one? [1] https://github.com/uyuni-project/sumaform/blob/master/backend_modules/libvirt/host/main.tf#L51-L57 |
Would it be an option to define a separate protected data disk resource, or is it a pile of ugly duplication? |
I think It will not be too difficult to implement. As soon as I have some time I will try it and if it works open a PR |
Add prevent destroy to data disk in case we are creating a mirror disk.
The text was updated successfully, but these errors were encountered: