Go to file
Shawn Dahlen 5865b1ac27 Check if machines are ready for SSH communication. 2013-04-04 16:52:12 -04:00
lib Check if machines are ready for SSH communication. 2013-04-04 16:52:12 -04:00
locales Proof-of-concept support for managing /etc/hosts. 2013-03-27 15:38:08 -04:00
test Check if machines are ready for SSH communication. 2013-04-04 16:52:12 -04:00
.gitignore Proof-of-concept support for managing /etc/hosts. 2013-03-27 15:38:08 -04:00
Gemfile Fix hook appending to up and destroy actions. 2013-04-04 15:23:55 -04:00
LICENSE.txt Proof-of-concept support for managing /etc/hosts. 2013-03-27 15:38:08 -04:00
README.md Proof-of-concept support for managing /etc/hosts. 2013-03-27 15:38:08 -04:00
Rakefile Cleaned up project structure for running tests. 2013-03-27 16:13:22 -04:00
vagrant-hostmanager.gemspec Proof-of-concept support for managing /etc/hosts. 2013-03-27 15:38:08 -04:00

README.md

Vagrant Host Manager

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

Status

The current implementation is a proof-of-concept supporting the larger objective of using Vagrant as a cloud management interface for development and production environments.

The plugin has been tested with Vagrant 1.1.4.

Installation

Install the plugin following the typical Vagrant 1.1 procedure:

vagrant plugin install vagrant-hostmanager

Usage

The plugin hooks into the vagrant up and vagrant destroy commands automatically updating the /etc/hosts file on each active machine that is using the same provider.

A machine's IP address is defined by either the static IP for a private network configuration or by the SSH host configuration.

A machine's host name is defined by config.vm.hostname. If this is not set, it falls back to the symbol defining the machine in the Vagrantfile.

Contribute

Contributions are welcome.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request