[chef] Re: Set berksfile path in kitchen.yml


Chronological Thread 
  • From: David Petzel < >
  • To:
  • Subject: [chef] Re: Set berksfile path in kitchen.yml
  • Date: Sat, 28 Feb 2015 09:26:18 -0500

I'm not sure of a way to tell Berks to look elsewhere, but you can leverage the fact that the .kitchen.yml runs through ERB so you can do something like this to copy it from where you want it into the current directory if wanted to.

<%
  FileUtils.cp 'your_source', './Berskfile'
%>
---
you normal kitchen stuff

On Sat, Feb 28, 2015 at 8:47 AM, Christopher Farnham < " target="_blank"> > wrote:
Hello,
Is it possible to configure kitchen (and berks) so that it finds your berksfile outside the current local directory. I know that, for many, it is considered best practice to have one berksfile for each cookbook. We, however, have one berksfile in our cookbooks directory, one level down.

For example, I'd like to do something like: 'berksfile_path: "../Berksfile"' 

Thanks in advance.

Best,
Chris




Archive powered by MHonArc 2.6.16.

§