[chef] Re: Cookbook testing with Vagrant/LXC


Chronological Thread 
  • From: Jesse Nelson < >
  • To: " " < >
  • Cc: " " < >
  • Subject: [chef] Re: Cookbook testing with Vagrant/LXC
  • Date: Tue, 24 Sep 2013 00:32:23 -0700

I've been using kitchen-lxc for Cook testing for quite some time using Ubuntu 12.04 as the "host". I used base templates to build Ubuntu templates. I used this template for CentOS iirc.  https://gist.github.com/hagix9/3514296

There is a lxc cookbook from heavy water ops that will build containers for u as well here: 

There is also a kitchen-docker driver I haven't tried but might be a bit easier to get up and running with docker if u haven't played with lxc yet.  

For muti-vm testing I've been using vagabond which is also Lxc backed and uses the lxc cookbook to magic up containers. I haven't used vagrant-lxc, but imagine u will have to spin containers for it as well. 

Tl;dr. Go read up on using lxc tools to make containers. There are templates to make it easy.  The hw lxc cookbook makes it easier.  My best successes have been using Ubuntu 12.04. 



Hi everyone,

Has anyone tried to do cookbook testing with Vagrant and LXC? I have been using
Vagrant/VirtualBox for awhile now for my cookbook testing but all of our CI
boxes are VMs which means VirtualBox won't work. LXC seems like a good answer
but seems like it might be a bit harder to use. It also seems like the bento
project doesn't support building LXC boxes and doing them manually doesn't seem
terribly easy. Any resources or suggestions would be great.



Archive powered by MHonArc 2.6.16.

§