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
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
I used the later option because I could not be sure that the corresponding environment variables had been set.