[chef] Using kitchen override/stub a cookbook


Chronological Thread 
  • From: Bill Warner < >
  • To: chef < >
  • Subject: [chef] Using kitchen override/stub a cookbook
  • Date: Thu, 6 Aug 2015 13:50:19 -0700

I am trying to setup testing with kitchen and docker,  some cookbooks like the supermarket "hostname" cookbook are not compatible with docker but they are used in my final deployments.  I'd like to stub these out just for when kitchen docker is used to speed up early testing but not when vagrant or doing a berks install.

I thought I'd use groups in my Berksfile, but that would still try to upload/install the stub cookbook to my chef server while doing a berks install unless i specify a -e docker_integration, and Berksfile doesn't seem to be processed by erb.

I was unable to find anywhere in the .kitchen.yml file where I could override a single cookbook, or a way to have it not process a cookbook.

--
--
Bill Warner



Archive powered by MHonArc 2.6.16.

§