[chef] Re: environment includes? role includes? run list in the environment?


Chronological Thread 
  • From: Michael Herman < >
  • To:
  • Subject: [chef] Re: environment includes? role includes? run list in the environment?
  • Date: Thu, 28 Feb 2013 13:27:32 +1100

Hi,

We use a concept of Infrastructure environments that provide the services you would expect; deployment servers, ntp, dns, local repos etc, these exist in each datacentre. Each "application" environment then defines its infrastructure environment and includes it in the relevant searches.

But that doesn't really address your problem of modifying the run_list.

Rgds,

mgh


On Thu, Feb 28, 2013 at 11:50 AM, Jesse Campbell < " target="_blank"> > wrote:
I want to have a "base" role and automatically include a datacenter-specific role depending on the environment.

essentially i have:

datacenter 1 (primary production):
10 environments

datacenter 2 (international):
6 environments

datacenter 3 (development):
6 environments

i have a "base" role that includes all of the recipes and roles and attributes that are common to all of the above as well as specific to DC1

then i have attribute overrides in the other 12 environments to fix things that are specific to DC2 or DC3.

i could use environment run lists, but then i'd have to list the 15 recipes that are in the default run list 22 times. yuck.

is there any way to specify a run list in the environment file instead? any other ideas?

thanks!




Archive powered by MHonArc 2.6.16.

§