Skip to content
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

Disable deleting host entries #71

Closed
iliakur opened this issue Aug 11, 2015 · 3 comments
Closed

Disable deleting host entries #71

iliakur opened this issue Aug 11, 2015 · 3 comments

Comments

@iliakur
Copy link

iliakur commented Aug 11, 2015

We just started using your plug-in and we're very thankful for it. I was wondering, however, if there are any plans for adding an option not to undo the changes to the hosts file upon halting the vagrant machine. The nature of our setup doesn't require us to modify that file all too often and the constant prompts for the admin password are a bit annoying. Just to be clear, I have no problem with the prompt itself and understand the need for it, but in our particular case I feel like the rewriting of the hosts file is a bit superfluous.

@cgsmith
Copy link
Collaborator

cgsmith commented Nov 4, 2015

@copper-head is this only necessary for vagrant halt or vagrant destroy?

As for the password prompts, that will be addressed in the documentation in an upcoming release.

@iliakur
Copy link
Author

iliakur commented Jan 12, 2016

Thanks for getting back and sorry about the delay. I originally saw this as only necessary for vagrant halt, since it would be kind of expected to undo this step with destroy.

@cgsmith
Copy link
Collaborator

cgsmith commented Jan 15, 2016

@copper-head I am adding this functionality in 1.0.2

config.hostsupdater.remove_on_suspend = false

You were able to do this in 1.0.1 but it only worked on suspend. It works on vagrant suspend and vagrant halt now. Expect a release soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants