Skip to content

bewiwi/vagrant-getredirection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-getredirection

Provides information on forwarded port configuration: this tool displays guest/host ports in multi-VM mode when VMs are running. Avoid to search in terminal VM startup trace / avoid to open VBox to find the forwarded ports.

Prerequisite:

  • Vagrant version >= 1.2.2
gem install bundler

Installation

Full installation

bin/install.sh

Or manual build:

$ gem install bundler
$ rake -T --trace
$ rake build --trace
$ vagrant plugin uninstall vagrant-getredirection
$ vagrant plugin install pkg/vagrant-getredirection*.gem
$ vagrant plugin list

Official HOWTO: http://docs.vagrantup.com/v2/plugins/packaging.html

Usage

$ vagrant up
$ vagrant redirection
[default] - Redirect : 
2242 => 42000
2280 => 80
2281 => 81
2254 => 5432
2288 => 8888
2222 => 22

Uninstallation

$ vagrant plugin uninstall vagrant-getredirection

Test ..

$ cd test
$ vagrant up test1
$ vagrant redirection
$ vagrant up test2
$ vagrant redirection