vagrant_bootstrap

Easily create directories with Vagrantfiles to ease creation and collaboration of namespaced Vagrant virtual machines and avoid namespace collisions.

Installation

Add this line to your application's Gemfile:

gem 'vagrant_bootstrap'

And then execute:

$ bundle

Or install it yourself as:

$ gem install vagrant_bootstrap

Usage

$ vagbs [name] [-b adapter]

Create a Vagrantfile in a directory. Optionally, supply a name and/or bridge adapter. If no name or bridge adapter is specified, sane defaults are used.

Defaults

Name

The default name is vagrant-yourname where "yourname" is determined by a whoami. If you specify a name, it will be appended, e.g. a name argument of "potato" will produce vagrant-yourname-potato.

Bridge Adapter

The default bridge adapter is the commonly used br0. No smarts here. It's just hard-coded.

Contributing

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