5

so I recently installed the vagrant-aws plugin with vagrant plugin install vagrant-aws, after quite the adventure with ruby versions and dependencies. Anyway, for our deployment pipeline I need to find a way to spin up vSphere machines with vagrant, and there is a vagrant-vsphere plugin on github, but I have no idea what to do with it. I'm really new to ruby/programming/devOps in general, and it doesn't look like vagrant will allow you to install plugins from local files.

I saw in the vagrant docs you can require a plugin in your vagrant file with require 'my_plugin', and I tried the path to the .gemspec file where my_plugin is, but can't seem to figure out how to work this. If anyone has help or pointers to places on the internet I can look, I would very much appreciate it :) I'll be scouring the web for a long time to find a solution.

Polygnome
  • 7,639
  • 2
  • 37
  • 57
addicted2unix
  • 517
  • 1
  • 7
  • 12

1 Answers1

3

You should be able to install it after bulding it from source:

mkdir ~/tmpbuild
cd ~/tmpbuild
git clone git://github.com/nsidc/vagrant-vsphere.git
cd vagrant-vsphere
gem build vSphere.gemspec
vagrant plugin install vagrant-vsphere-0.0.1
Polygnome
  • 7,639
  • 2
  • 37
  • 57
  • This worked, but didn't seem to actually install the vagrant-vsphere plugin, but after I ran vagrant plugin install vagrant-vsphere after running all your previous commands it allowed me to install it and it worked! Trying to bring up a dummy box, but having problems with that. I believe this is problem solved! – addicted2unix Jun 19 '13 at 21:57
  • Note: after running vagrant plugin install vagrant-vsphere the first time, it said "Installed the plugin 'mini_portile (0.5.0)'!", and did not install the provider, but the second time running the command yielded "Installed the plugin 'vagrant-vsphere (0.0.1)'! – addicted2unix Jun 19 '13 at 22:03