[chef] Re: Question on Test Kitchen usage - can you halt and restart the vm?


Chronological Thread 
  • From: Jeff Byrnes < >
  • To:
  • Subject: [chef] Re: Question on Test Kitchen usage - can you halt and restart the vm?
  • Date: Wed, 26 Mar 2014 06:43:19 -0400

Richard:

Test Kitchen will always destroy & re-create the VM if you run `kitchen test suite`, with suite corresponding to a combo of suite & platform. You can see what’s available as a suite by running `kitchen list`. By default, TK will destroy a VM after a successful test run. It will not, however, after a `kitchen create`, if memory serves. You can alter this behavior with the `--destroy`, or `-d` flag. Run `kitchen test -h` for details.

-- 
Jeff Byrnes
Operations Engineer

On March 26, 2014 at 6:35:37 AM, Richard Murray ( "> ) wrote:

Hi, 

I have some questions on using Test Kitchen (http://kitchen.ci/), I'm not sure if this is the right place to post but wasn't sure where else to ask.

Is it possible to do the equivalant of a 'vagrant halt' or a 'vagrant up' using Test Kitchen?

I switched to using TestKitchen after having problems running Vagrant with Berkshelf a Windows 7 PC. Whenever I 'vagrant up' I get an error 'Failed to load the "vagrant-berkshelf" plugin' even though the Gem is installed.  I found that Vagrant-berkshelf is being deprecated (according to https://sethvargo.com/the-future-of-vagrant-berkshelf/
so I tried Test Kitchen instead and it's working great with Berkshelf, however if I reboot my machine I have to run:

kitchen destroy
kitchen create
kitchen converge

Is there any way to halt the vm and just bring it back up again without having to re-provision it?

If there isn't and I need to use vagrant directly for this, I assume my only choice is to get berkshelf to download the dependencies e.g. berks install --path ../vendor-cookbooks' and create a Vagrant file to run chef-solo using this path on the cookbooks_path?

Thanks, 
Richard.



Archive powered by MHonArc 2.6.16.

§