-
Notifications
You must be signed in to change notification settings - Fork 148
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
New hosts os hosts file #18
New hosts os hosts file #18
Conversation
…ucture in place, rather than generating a local hosts entry automatically.
Conflicts: lib/vagrant-hostmanager/config.rb lib/vagrant-hostmanager/hosts_file.rb locales/en.yml
@b2jrock Sorry, running behind. I'll look to review and merge tomorrow. |
@b2jrock After some testing, it appears that destroying a single machine within a multi-machine environment removed all entries in the hosts file on other guest machines. This does not occur on the host. I'm looking further now. If you have a fix, let me know, and I will re-pull from your branch. |
That should remove only the single entry for that machine on the other
|
Repro'd and found the bug, it seems that the machine id is coming through Fix forthcoming. Brian On Mon, Jun 17, 2013 at 9:44 AM, Brian J [email protected] wrote:
|
- Set the hook for deletion to run prior to machine deletion so that the id is retrieveable.
Looking pretty good, I ran the following tests -- maybe we can document/automate this:
|
I've pulled your update. I'll modify the acceptance test to automate the approach you outlined. |
This commit cleaned up the plugin's configuration and added code comments for the hosts_file module. Additionally, display messages were re-organized based on the single action. The command still requires code to validate the configuration before execution. This closes pull request #18. Thanks to @b2jrock for his contribution.
(re-did this branch to make it easier to review)
This set of changes was made to manage hosts file entries on the host machine. This is so that you can use the hostnames to connect to your local boxes.
As part of this, I changed it so that we actually fetch the existing hosts file from the guest machines and add to it rather than overwriting.
Keywords added: hostmanager.manage_local = true
Manage local hosts file
Caveats: