You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`vagrant-hostmanager` is a plugin that manages the `/etc/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.
9
+
`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.
10
10
11
11
Installation
12
12
------------
13
-
Install the plugin following the typical Vagrant 1.1 procedure:
14
13
15
14
$ vagrant plugin install vagrant-hostmanager
16
15
17
16
Usage
18
17
-----
19
-
To update the `/etc/hosts` file on each active machine, run the following
18
+
To update the `hosts` file on each active machine, run the following
20
19
command:
21
20
22
21
$ vagrant hostmanager
23
22
24
23
The plugin hooks into the `vagrant up` and `vagrant destroy` commands
25
24
automatically.
26
25
When a machine enters or exits the running state , all active
27
-
machines with the same provider will have their `/etc/hosts` file updated
26
+
machines with the same provider will have their `hosts` file updated
28
27
accordingly. Set the `hostmanager.enabled` attribute to `true` in the
29
28
Vagrantfile to activate this behavior.
30
29
31
-
To update the host's `/etc/hosts` file, set the `hostmanager.manage_host`
30
+
To update the host's `hosts` file, set the `hostmanager.manage_host`
32
31
attribute to `true`.
33
32
34
-
To update the guests' `/etc/hosts` file, set the `hostmanager.manage_guest`
33
+
To update the guests' `hosts` file, set the `hostmanager.manage_guest`
35
34
attribute to `true`.
36
35
37
36
A machine's IP address is defined by either the static IP for a private
@@ -159,12 +158,13 @@ visible errors, however the ```hosts``` file will not be updated.
159
158
160
159
Compatibility
161
160
-------------
162
-
This Vagrant plugin has been tested with the following technology.
161
+
This Vagrant plugin has been tested with the following host and guest operating system combinations.
163
162
164
163
Date Tested | Vagrant Version | vagrant-hostmanager Version | Host (Workstation) Operating System | Guest (VirtualBox) Operating System
0 commit comments