- From: Seth Falcon <
>
- To:
- Subject: [chef] Re: Environments & Databags
- Date: Fri, 03 Jan 2014 07:47:52 -0800
Hi,
writes:
>
Hello! How do you folks deal with environment-specific data in databags?
>
And databag items?
>
>
For example, for the first case, let's say a user should be in one group in
>
stage, and a different group in prod.
A pattern we use is:
data_bags/
users/
prod.json
preprod.json
So anything that needs environment specific settings gets an environment
specific data bag item.
Recipe code can then select the right data bag item via the node's
chef_environment attribute.
+ seth
--
Seth Falcon | Development Lead | CHEF |
http://www.getchef.com/ | @sfalcon
Archive powered by MHonArc 2.6.16.