@@ -16,22 +16,22 @@ Install the plugin following the typical Vagrant 1.1 procedure:
16
16
17
17
Usage
18
18
-----
19
- To update the ` /etc/ hosts` file on each active machine, run the following
19
+ To update the ` hosts ` file on each active machine, run the following
20
20
command:
21
21
22
22
$ vagrant hostmanager
23
23
24
24
The plugin hooks into the ` vagrant up ` and ` vagrant destroy ` commands
25
25
automatically.
26
26
When a machine enters or exits the running state , all active
27
- machines with the same provider will have their ` /etc/ hosts` file updated
27
+ machines with the same provider will have their ` hosts ` file updated
28
28
accordingly. Set the ` hostmanager.enabled ` attribute to ` true ` in the
29
29
Vagrantfile to activate this behavior.
30
30
31
- To update the host's ` /etc/ hosts` file, set the ` hostmanager.manage_host `
31
+ To update the host's ` hosts ` file, set the ` hostmanager.manage_host `
32
32
attribute to ` true ` .
33
33
34
- To update the guests' ` /etc/ hosts` file, set the ` hostmanager.manage_guest `
34
+ To update the guests' ` hosts ` file, set the ` hostmanager.manage_guest `
35
35
attribute to ` true ` .
36
36
37
37
A machine's IP address is defined by either the static IP for a private
@@ -90,14 +90,14 @@ config.vm.provision :hostmanager
90
90
Custom IP resolver
91
91
------------------
92
92
93
- You can customize way, how host manager resolves IP address
94
- for each machine. This might be handy in case of aws provider,
95
- where host name is stored in ssh_info hash of each machine.
96
- This causes generation of invalid /etc/ hosts file.
93
+ You can customize how vagrant-hostmanager resolves IP address
94
+ for each machine. This might be handy in the case of the AWS provider,
95
+ where the host name is stored in the ssh_info hash of each machine.
96
+ This causes a generation of an invalid ` hosts ` file.
97
97
98
- Custom IP resolver gives you oportunity to calculate IP address
99
- for each machine by yourself, giving You also access to the machine that is
100
- updating /etc/ hosts. For example:
98
+ A custom IP resolver gives you the oportunity to calculate IP address
99
+ for each machine by yourself, giving you access to the machine that is
100
+ updating ` hosts ` . For example:
101
101
102
102
``` ruby
103
103
config.hostmanager.ip_resolver = proc do |vm , resolving_vm |
0 commit comments