-
Notifications
You must be signed in to change notification settings - Fork 11
[fix](modules/vmseries): added lifecycle ignore_change for boot_disk #61
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
base: main
Are you sure you want to change the base?
[fix](modules/vmseries): added lifecycle ignore_change for boot_disk #61
Conversation
@jochristian What is the solution for the users, that would like to re-deploy VM-Series when the disk image changes? |
Well you could do a terraform destroy? Since this is what will actually happen with the "old" solution? My question is. What is the solution for users that want this to be solved: |
You can use a local copy of the module with the |
Yes, that is what we did previously. So yes, local modules is of course a solution. But we would prefer to use the modules that Palo Alto keeps updated. module "vmseries" { So we don't loose control on new changes :-) |
After thinking some more about this. |
Potential fix for #49
Description
To fix the issue with image change I haved added a lifecycle ignore_changes = [boot_disk.0.initialize_params.0.image]
for the vmseries module.
While might be solved in a better way. I have not found any better ways now.
As already known referencing a module does not currently support lifecyle options,
Motivation and Context
Changing the image variable for a newer version of PANos should NOT destroy what has already been created by terraform. This will fix this issue
I can't see any reasons why this should be an part of the module.
Why would you want terraform to destroy an already created infrastructure using this module?
And if this is what you really want the destroy should be done with changing some other variables (region, number of vm's etc).
How Has This Been Tested?
I tested in my own environment where I changed my current PANos image to something else.
With this fix terraform does not destroy any already created vm-series created.
Screenshots (if appropriate)
Types of changes
lifecycle was added in the vmseries modules under google_compute_instance.
Checklist