- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: RE: Re: Clusters?
- Date: Fri, 24 Jun 2011 08:47:47 -0700
On Friday, June 24, 2011 at 8:37 AM, Matthew Drobnak wrote:
>
That’s what I did, but I added a new item in my data bag, and checked for
>
it's presence if the search yielded 0 results...
>
>
Is that what you are doing (ie modifying the recipes)?
>
>
Thanks.
>
>
-Matt
Yeah, we have data_bags/environments/{prod,preprod, ... }.json
We access them in the recipes with something like
env = data_bag_item("environments", node.chef_environment)
And the vips are like
env["foo_app_vip"]
Anyway, if you're using git and cookbooks from the cookbooks site, use the
vendor branch stuff with `knife cookbook install` to install the cookbooks
into your git repo, you can modify the cookbooks while still tracking the
upstream.
--
Dan DeLeo
Archive powered by MHonArc 2.6.16.