Version locking and roles

So it sounds like a lot of people are protecting prod stability by
specifying cookbook versions in their prod environments but not in the
envs for pre-prod. How are you handling the fact that roles aren’t
versioned though? I guess you can specify versions for the cookbooks
of the recipes inside an assigned role individually, but what if the
recipes in a role change? For instance, I want to introduce a new
recipe into my base role, but I want to do it in pre-prod before
production of course. If I add it into the base role, production
version specs won’t stop it. What I want is to lock prod onto the
version of the ROLE that doesn’t yet have the new recipe. I guess I
could make version 0.0.1 of the new cookbook a no-op and add then make
my real version 0.0.2 and lock prod to a no-op… and trust that it
really is a no-op, kinda weak.

Anyone done a longer term writeup on what it’s like living with an
evolving chef repo in pre-prod and prod over the longer term?

KC

Hello!

On Thu, Aug 18, 2011 at 1:20 PM, KC Braunschweig
kcbraunschweig@gmail.com wrote:

Anyone done a longer term writeup on what it's like living with an
evolving chef repo in pre-prod and prod over the longer term?

You can use environment-specific run lists in Roles.

http://wiki.opscode.com/display/chef/Roles#Roles-envrunlists

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

Works great unless you need to change the attribs or overrides in the
role as well.

On Thu, Aug 18, 2011 at 2:34 PM, Joshua Timberman joshua@opscode.com wrote:

Hello!

On Thu, Aug 18, 2011 at 1:20 PM, KC Braunschweig
kcbraunschweig@gmail.com wrote:

Anyone done a longer term writeup on what it's like living with an
evolving chef repo in pre-prod and prod over the longer term?

You can use environment-specific run lists in Roles.

http://wiki.opscode.com/display/chef/Roles#Roles-envrunlists

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

On Thu, Aug 18, 2011 at 3:40 PM, Jesse Nelson spheromak@gmail.com wrote:

Works great unless you need to change the attribs or overrides in the
role as well.

Sure, though for that you can set environment specific attributes in
the environment itself.

http://wiki.opscode.com/display/chef/environments#Environments-attributes