devopsgroup-io / vagrant-hostmanager

:pencil: A Vagrant plugin that manages hosts files within a multi-machine environment.
Mozilla Public License 2.0
1.46k stars 147 forks source link

Adding aliases for the host computer. #123

Open djmittens opened 10 years ago

djmittens commented 10 years ago

Hi i would like to be able to alias the host computer for access from the vm (particular use case is xdebug for php which does reverse debug connections from server to ide).

jhoffmann commented 9 years ago

I would like this as well. In chef recipes, you can use node['network']['default_gateway'] if you've setup a private network, but I don't want to have to template all of my Laraval config files in Chef...

garethahealy commented 8 years ago

+1

creftos commented 7 years ago

+1

davidmnoriega commented 7 years ago

I was going to open a new issue, but saw this one, hopefully I can provide more information.

My use case is with the vagrant-proxyconf plugin. I have a squid proxy running on my host machine for caching apt and yum packages and use that plugin to configure the vagrant guest. Issue is I must provide a valid IP for the guest to reach the host. Usually this is the gateway of the first interface that vagrant configures, but that can vary between providers(I use both vmware fusion and virtualbox and each one is different in how networking is setup).

When using the vagrant-proxyconf plugin, I hardcode this IP address in my Vagrantfile, but it would be nice and more portable to use a name that can be set in /etc/hosts.