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
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??
Archive powered by MHonArc 2.6.16.