you can have a condition based on the chef_environment in your cookbooks attributes or recipes.
In attribute file:If chef_environment == 'blarg'default[:mything][:blah] = 'whee'endOn Fri, Mar 14, 2014 at 4:11 PM, Douglas Garstang < " target="_blank"> > wrote:
We put every cookbook in its own git repo. Is there any way to put environment data, related to just that cookbook actually IN the cookbook, rather than a common environments directory?I ask this because it seems strange to me that cookbooks are supposed to be a unit of software, and yet environment data, related to the cookbook has to be put into a common location. Seems strange. You can get around this with role attributes by creating wrapper cookbooks, but .... for environments?Doug
Archive powered by MHonArc 2.6.16.