[chef] Re: Re: How to freeze the cookbook based upon the chef environment?


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To:
  • Subject: [chef] Re: Re: How to freeze the cookbook based upon the chef environment?
  • Date: Sat, 5 May 2012 23:46:35 +0545

Thanks.

-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow

On Saturday, May 5, 2012 at 8:25 PM, Matthew Moretti wrote:

Use the cookbook_versions method in your production environment file. So, something like:

cookbook_versions {"unicorn" => "= x.y.z", "rails" => "~> x.y"}

See:
http://wiki.opscode.com/display/chef/Environments
http://wiki.opscode.com/display/chef/Version+Constraints

Matt Moretti

On May 5, 2012 7:50 AM, "Sachin Sagar Rai" < "> > wrote:
Hi Chef fellas!

On my chef-server, I've a rails app running in chef's production env.

Now I want to tweak and test the configuration of the unicorn in the chef environment in a separate instance.

When the chef-client of the production node runs, it checks in the WIP cookbook/recipes and try to apply. Since the tweaks is not finalized, it might break the running production app.

So, how can I freeze the cookbook/recipe just for the node/chef production environment only??

-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow





Archive powered by MHonArc 2.6.16.

§