-
Notifications
You must be signed in to change notification settings - Fork 26
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
Update host's /etc/hosts file too #4
Comments
👍 for this behavior. I was thinking of that initially when I worked on this, and I started building out a primitive driver layer so that hosts could be provisioned with the same code as guests. However, writing to /etc/hosts is going to require superuser permission. How would you like to see that handled? On a VM it's easy to do since you can just |
Handling it the same way NFS mounts are done (asking for it when the VM is being brought up) would be fine with me. Since it doesn't take very long to bring up VMs, if NFS asks for sudo creds first, they'll probably still be cached when you go to edit the host's |
Implement it as a command, seems the sanest. Makes it available when needed/wanted without otherwise getting in the way. |
I'd be fine with a command that just echo'd the lines al la vagrant ssh-config. |
...optionally in Puppet syntax? |
That was my plan. I'm working on this now.
|
Submited a pr in #18. Adds the basic support for this. Probably could expand on this to be smarter. But this is a start. |
Since GH-18 is merged this is partially solved. The next steps will be automatically updating the host with this information. |
Might be interesting to look at https://github.com/smdahlen/vagrant-hostmanager , since this does similar things. |
I just found this plugin after having problems with |
That feature would be nice! Especially because |
It'd be nice if this gem also updated the host machine's /etc/hosts file too. It may be worth looking at ghost ( https://github.com/bjeanes/ghost ) for integration/inspiration.
The text was updated successfully, but these errors were encountered: