How to use local setting with kitchen

I’ve recently created a cookbook for setting up a server for continuous integration.
Since I have been working on it in different environment with different proxy settings, I needed a way of getting kitchen to work with different .kitchen.yml files.
I found two solutions for the problem both described in this stackoverflow post.

The first solutions was to use different .yml files for the different environments and specifying the one to use by setting the environment variable KITCHEN_YAML to point to the appropriate file.

The second solution involved using ruby template (ERB) style notations in only one .yml file.

I used the later option because I could not be sure that the corresponding environment variables had been set.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">