diff --git a/README.md b/README.md index 2cf511d..4951d86 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ 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 @@ -24,14 +24,14 @@ command: 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 @@ -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|