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


Chronological Thread 
  • From: Jesse Campbell < >
  • To: chef < >
  • Subject: [chef] environment includes? role includes? run list in the environment?
  • Date: Wed, 27 Feb 2013 19:50:14 -0500

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.

§