-
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
vagrant-hostmanager still doesn't check if guests are not running in multi-machine setup #207
Comments
This might be related to #209, but I am not sure. I reported it separately just in case it is distinct. |
This affects me too. Creating this post as a +1 post others can give the thumbs up to indicate that this affects them as well. EDIT: This combination of configuration options makes the problem go away for me:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(I'm unable to re-open #200, so I'm reporting this again, feel free to re-open #200 and close this as a duplicate)
I'm running vagrant 1.8.4 and vagrant-hostmanager 1.8.3 (applies to vagrant 1.8.1 and vagrant-hostmanager 1.8.1/1.8.2 too). This is my config:
Now, if I only start the PHP machine:
and then try to update the hosts file on both the PHP machine and my host:
this happens:
What? Of course WinRM cannot access anything, the NET machine is not running. This stops
hostmanager.manage_host = true
from working.Same thing happens if only the NET machine is running:
If I have both machines running, everything works great:
Then I found out from the documentation that it doesn't matter if I set:
hostmanager.include_offline = false
because I have:
hostmanager.ignore_private_ip = false
but even changing this to:
hostmanager.ignore_private_ip = true
then trying to move it to the
config
section, etc. doesn't have any effect.If I ignore private IPs and don't include offline machines, shouldn't those machines be ignored, therefore making this:
actually happen and work?
Am I doing something wrong or is this a bug? It does seem like a minor quirk, but in the environment I set up, developers mostly use the PHP machine, so the hostmanager solution for automatic setup of their host machines doesn't work at all if it's the only machine running, they have to download the huge NET box, start it, then run hostmanager, then shut the NET box down and destroy it to free up resources temporairly.
(Another report here suggested to put
hostmanager.enabled = true
into theconfig
section, but that breaks the whole setup, because it tries to provision both guests with updated hosts files regardless if a machine is running or even downloaded at all when usingvagrant up
,vagrant halt
, so after many tries, this is the mostly working multi-machine setup.I also couldn't find any single working example of a working resolver for Windows, as standard resolvers simply don't work, neither for Windows or Ubuntu, so hopefully this will be helpful to some people.)
The text was updated successfully, but these errors were encountered: