NightMonkey Guru
Joined: 21 Mar 2003 Posts: 356 Location: Philadelphia, PA
|
Posted: Wed Feb 04, 2015 10:32 pm Post subject: Chef T |
|
|
https://github.com/test-kitchen/test-kitchen
Howdy. I'm trying to get this to work under my user account. I'm having trouble with Vagrant installation here. Installation via gems is 'working', but Vagrant left the RubyGems world a while back, so only a placeholder remains. However, if I install Vagrant via Portage, gem doesn't see that install.
I'm also using rbenv to handle my user's ruby environment. Has anyone been able to get Chef Test Kitchen to work in their environment, and did you overcome a similar problem? If so, how'd you get past this challenge?
Thanks in advance!
Shell session reference:
Code: |
nightmonkey@fuji-02 Wed Feb 04
~/learningchef/chap5/kitchen/ kitchen list
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ShellOut::ShellCommandFailed
>>>>>> Message: Expected process to exit with [0], but received '1'
---- Begin output of vagrant --version ----
STDOUT:
STDERR: Thanks for wanting to use Vagrant! Unfortunately, this is not the way
to install Vagrant anymore. We now make installers for the various operating
systems Vagrant supports.
Vagrant is no longer distributed as a RubyGem. Please download the latest
version for your operating system from the URL below. If you still wish
to use the RubyGem version, you can manually install version 1.0.7. Note that
the RubyGem version hasn't been updated in over a year and will no longer
receive any updates.
Prior to installing Vagrant using the installer, make sure you uninstall
all your Vagrant gems, since they sometimes conflict.
http://www.vagrantup.com
If you want to learn more about why we don't distribute using RubyGems
anymore, please read this: http://mitchellh.com/abandoning-rubygems
---- End output of vagrant --version ----
Ran vagrant --version returned 1
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
nightmonkey@fuji-02 Wed Feb 04
~/learningchef/chap5/kitchen/ |
However....
Code: | nightmonkey@fuji-02 Wed Feb 04
~/learningchef/chap5/kitchen/ gem uninstall vagrant
Remove executables:
vagrant
in addition to the gem? [Yn] y
Removing vagrant
Successfully uninstalled vagrant-1.5.0
nightmonkey@fuji-02 Wed Feb 04
~/learningchef/chap5/kitchen/ kitchen list
Could not find vagrant-1.5.0 in any of the sources
Run `bundle install` to install missing gems.
nightmonkey@fuji-02 Wed Feb 04
~/learningchef/chap5/kitchen/
|
but then, *after* I install Vagrant via portage...
Code: | nightmonkey@fuji-02 Wed Feb 04
~/learningchef/chap5/kitchen/ kitchen list
Could not find vagrant-1.5.0 in any of the sources
Run `bundle install` to install missing gems.
nightmonkey@fuji-02 Wed Feb 04
~/learningchef/chap5/kitchen/ eix -I vagrant
[I] app-emulation/vagrant
Available versions: ~1.0.7^t (~)1.4.3-r2^t {test ELIBC="FreeBSD" RUBY_TARGETS="ruby19 ruby20"}
Installed versions: 1.4.3-r2^t(02:30:48 PM 02/04/2015)(-test ELIBC="-FreeBSD" RUBY_TARGETS="ruby20")
Homepage: http://vagrantup.com/
Description: A tool for building and distributing virtual machines using VirtualBox
nightmonkey@fuji-02 Wed Feb 04
~/learningchef/chap5/kitchen/
|
_________________
|
|