Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
seth-reeser committed Sep 14, 2016
1 parent d8a03b9 commit eb82fef
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ Install the plugin following the typical Vagrant 1.1 procedure:

Usage
-----
To update the `/etc/hosts` file on each active machine, run the following
To update the `hosts` file on each active machine, run the following
command:

$ vagrant hostmanager

The plugin hooks into the `vagrant up` and `vagrant destroy` commands
automatically.
When a machine enters or exits the running state , all active
machines with the same provider will have their `/etc/hosts` file updated
machines with the same provider will have their `hosts` file updated
accordingly. Set the `hostmanager.enabled` attribute to `true` in the
Vagrantfile to activate this behavior.

To update the host's `/etc/hosts` file, set the `hostmanager.manage_host`
To update the host's `hosts` file, set the `hostmanager.manage_host`
attribute to `true`.

To update the guests' `/etc/hosts` file, set the `hostmanager.manage_guest`
To update the guests' `hosts` file, set the `hostmanager.manage_guest`
attribute to `true`.

A machine's IP address is defined by either the static IP for a private
Expand Down Expand Up @@ -90,14 +90,14 @@ config.vm.provision :hostmanager
Custom IP resolver
------------------

You can customize way, how host manager resolves IP address
for each machine. This might be handy in case of aws provider,
where host name is stored in ssh_info hash of each machine.
This causes generation of invalid /etc/hosts file.
You can customize how vagrant-hostmanager resolves IP address
for each machine. This might be handy in the case of the AWS provider,
where the host name is stored in the ssh_info hash of each machine.
This causes a generation of an invalid `hosts` file.

Custom IP resolver gives you oportunity to calculate IP address
for each machine by yourself, giving You also access to the machine that is
updating /etc/hosts. For example:
A custom IP resolver gives you the oportunity to calculate IP address
for each machine by yourself, giving you access to the machine that is
updating `hosts`. For example:

```ruby
config.hostmanager.ip_resolver = proc do |vm, resolving_vm|
Expand Down

0 comments on commit eb82fef

Please sign in to comment.