Skip to content

Instantly share code, notes, and snippets.

@tmatilai
Last active January 3, 2016 14:39
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tmatilai/8477451 to your computer and use it in GitHub Desktop.
Save tmatilai/8477451 to your computer and use it in GitHub Desktop.
Install vagrant-berkshelf (and berkshelf) from their git repositories

IMHO the correct way to install bleeding edge plugins to Vagrant is to use the standard Vagrant installer.

These instructions should work for Vagrant 1.1.0 - 1.4.x (but probably not for Vagrant 1.5+),

git clone https://github.com/berkshelf/berkshelf.git
cd berkshelf
gem build berkshelf.gemspec

# Install directly to Vagrant's gem storage, as this is not a plugin
gem install berkshelf-*.gem --conservative --no-ri --no-rdoc --install-dir $HOME/.vagrant.d/gems

cd ..

git clone https://github.com/berkshelf/vagrant-berkshelf.git
cd vagrant-berkshelf
gem build vagrant-berkshelf.gemspec

# Normal install with Vagrant
vagrant plugin install vagrant-berkshelf-*.gem

In above commands it's possible to also use Vagrant's embedded gem:

  • Linux: /opt/vagrant/embedded/bin/gem
  • OS X: /Applications/Vagrant/embedded/bin/gem
  • Windows: C:\HashiCorp\Vagrant\embedded\bin\gem
@allaire
Copy link

allaire commented Feb 21, 2014

If you need to start fresh after messing with plugins installation, simply delete the content of ~/.vagrant.d/gems directory and ~/.vagrant.d/plugins.json as well and start fresh :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment