-
Notifications
You must be signed in to change notification settings - Fork 74
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
Support rebuild
command of the Digital Ocean provider
#11
Conversation
The vagrant-digitalocean plugin provides `vagrant rebuild` command that destroys the VM and creates it again (with the same IP). Hook to that action, too.
Support `rebuild` command of the Digital Ocean provider
Not sure if this approach helps: I guess I'm wondering if an alternative might be to persuade (Sorry, I forget if you were involved in that multi-issue convo) |
@patcon thanks, I was more or less reading what was going on there. The solution is great and the similar structure is already in vagrant-cachier and in vagrant-proxyconf. The biggest difference is that I chose not to trigger the plugin on all Provision actions, as IMHO this is something related to setting up the VM instance and not related to provision. I prefer to avoid all extra delay in the feedback loop when testing Chef cookbooks. So at least for now we hook only to |
👍 that makes sense. This does strike me as the same class of plugin -- as in, comparable to cachier or omnibus -- but having said that, it's almost arbitrary that they decided to attach to each provision event. I guess the only case to be made (and I don't feel strongly about this at all) is that forcing a But yeah, I'm obviously fine with whatever you think makes most sense |
Heh, I've been thinking a bit more of this after writing the previous comment. =) vagrant-cachier only hooks to But I agree that configuring the OS fits into the "provision" command. So I'm willing to change that after all. Thanks a lot again for your comments! |
No prob man, my pleasure :) I feel like I'm walking the fine line between bikeshedding and worthwhile contribution haha |
I feel like buying you a 🍺 :D |
🍻 |
Okay, PR #12 has born. |
The vagrant-digitalocean plugin provides
vagrant rebuild
command that destroys the VM and creates it again (with the same IP).Hook to that action, too.