tunapanda / provision

System for provisioning a new virtual machine with Tunapanda Edubuntu
7 stars 12 forks source link

script to aid aws setup #26

Open usernamenumber opened 9 years ago

usernamenumber commented 9 years ago

@devalih: does this look sane? The idea is to make installing needed plugins and gathering credentials more intuitive.

usernamenumber commented 9 years ago

Forgot to include details in the other PR about what's going wrong when I try to set up the plugin:

Attempting to install vagrant-aws fails saying it needs the nokigiri gem:

$ sudo vagrant plugin install vagrant-aws
Password:
Installing the 'vagrant-aws' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:

An error occurred while installing nokogiri (1.6.5), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.5'` succeeds before bundling.

The gem installs fine:

$ sudo gem install nokogiri -v '1.6.5' && sudo vagrant plugin install vagrant-aws
Fetching: nokogiri-1.6.5.gem (100%)
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.6.5
Parsing documentation for nokogiri-1.6.5
Installing ri documentation for nokogiri-1.6.5
Done installing documentation for nokogiri after 4 seconds
1 gem installed

Oddly, there appear to be two versions installed, even if I do gem uninstall nokogiri first:

$ sudo gem list --local | grep nok
nokogiri (1.6.5, 1.5.6)

...and yet, if I re-run sudo vagrant plugin install vagrant-aws, it fails with the same message.

I'll keep messing around with it, but just in case there's an obvious cause that someone else can see...

devalih commented 9 years ago

The PR looks great, about the Bundler error, I think it's an issue with your local ruby env.