[chef] Re: Scoping data bag items to environments


Chronological Thread 
  • From: Joshua Timberman < >
  • To:
  • Subject: [chef] Re: Scoping data bag items to environments
  • Date: Tue, 16 Aug 2011 19:15:17 -0600

Hello!

On Tue, Aug 16, 2011 at 5:46 PM, Charles Duffy 
< >
 wrote:
>
> Is there any support, either in code or by convention, for scoping data bag
> items to environments?

Convention. For example in an application deployment, we might want to
have a specific version listed in a data bag item by environment.

{
  "id": "my_app",
  "repository": 
" :my_company/my_app.git",
  "repository: {
    "production": "1.0.0",
    "staging": "1.2.0",
    "development": "master"
  }
}

We use this pattern in Opscode's public "application" cookbook.

-- 
Opscode, Inc
Joshua Timberman, Director of Training and Services
IRC, Skype, Twitter, Github: jtimberman



Archive powered by MHonArc 2.6.16.

§