-
Notifications
You must be signed in to change notification settings - Fork 59
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
Implement save_config #6
Comments
|
Good point. The semantics of the (yet-to-be-implemented) |
we could do that. We use gitlab as our CI pipeline so could ensure the |
After a little bit of investigation, this doesn't look promising. The
|
See 7e5f788 |
I don't see |
There are NetScaler users with thousands of objects, so the impact would be quite non-trivial to them. |
I haven't looked through all of the resources, but dropping the SaveConfig inside of |
I think it really depends on the environment. Rather than forcing the potentially poor performance on every user, I want to leave that choice to the user. Any other ideas to allow this flexibility? |
I think another option would be to create a You could also create a But how does terraform handle the save failing? I imagine the tfstate would not match what's on the Netscaler and cause problems. That's why I prefer the explicit save in each resource. |
Closing this issue due to inactivity. The current solution is to use the We will revisit this if and when terraform implements a mechanism similar to Ansible's |
As currently implemented, the NetScaler provider does not commit the configuration to the NetScaler's persistent store(CLI:
save_config
). Reason:save_config
then they could potentially stomp on each other. We would probably have to force serial execution.One idea is to have a
netscaler_save_config
resource that could be run once. But it needs to run at the very end of the config run, so potentially the config author has to make it depend on every resource.If and when TF implements
depends_on
support for modules (see hashicorp/terraform#10462) this could be solved by putting the 'main' config in a module and a second module that only runsnetscaler_save_config
anddepends_on
the first moduleThe text was updated successfully, but these errors were encountered: