Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What the difference between vagrant-hostsupdater and vagrant-hostmanager?

Tags:

vagrant

hosts

What the difference between this 2 vagrant plugins? I'm using vagrant-hostmanager which can update /etc/hosts file on host machine, as well as on guest machine, supports multi-machine vagrant setup. But when I tried to use this tool https://github.com/roots/trellis I noticed that it uses vagrant-hostsupdater. Are there any benefits of this plugin compared to vagrant-hostmanager?

like image 382
Konstantin Pogrebnoy Avatar asked Sep 04 '15 11:09

Konstantin Pogrebnoy


People also ask

What is vagrant Hostmanager?

vagrant-hostmanager is a Vagrant plugin that manages the hosts file on guest machines (and optionally the host). Its goal is to enable resolution of multi-machine environments deployed with a cloud provider where IP addresses are not known in advance.

How do I check my vagrant plugins?

To view what plugins are installed into your Vagrant environment at any time, use the vagrant plugin list command. This will list the plugins that are installed along with their version.


1 Answers

Hostsupdater updates the /etc/hosts only of the host machine.

Hostsmanager updates the /etc/hosts of both the vm and the host machine.

like image 110
fain182 Avatar answered Sep 29 '22 17:09

fain182