Speed up test-kitchen

To speed up test-kitchen process, using vagrant-cachier plugin.

vagrant-omnibus plugin also support vagrant-cachier plugin.

Read the articles


To cache vagrant-omnibus plugin’s chef package.

  name: chef_solo
  chef_omnibus_install_options: ' -d /tmp/vagrant-cache/vagrant_omnibus'

And default all cache is created under ~/.vagrant.d/cache/.

If you use cache per box setting, directories looks like following.

ls  ~/.vagrant.d/cache
opscode-centos-6.5  opscode-ubuntu-12.04
opscode-centos-7.0  opscode-ubuntu-14.04

and under the box directory

ls  ~/.vagrant.d/cache/opscode-centos-6.5
vagrant_omnibus  yum

vagrant_omnibus has chef packages.

yum has yum packages.

Update 2016-05-17

  • [Setting Up Your Private Supermarket Server Chef Blog](https://www.chef.io/blog/2015/04/21/setting-up-your-private-supermarket-server/)

See Test kitchen is slow because it has to download/install the Chef Omnibus client package every time

Written on March 18, 2015