- From: Peter Donald <
>
- To: Chef Mailing List <
>
- Subject: [chef] Re: Cookbook versions on node
- Date: Fri, 16 Mar 2012 14:11:54 +1100
Hi,
I eventually got around to looking at this and have started to verify
that all cookbooks are frozen and have an explicit version if they are
not in the development environment. I have put the basics of it in a
gist for any one who is curious...
https://gist.github.com/2048310
On Wed, Feb 8, 2012 at 1:36 PM, Peter Donald
<
>
wrote:
>
Hi,
>
>
I would like to enforce certain cookbook version requirements on
>
cookbooks in different environments from within a recipe.
>
>
i.e. All cookbooks on "production" environment must have an even minor
>
version. (i.e. 10.0.2 is valid but 10.0.3 is not). I also want to
>
require that cookbooks be locked or not. (i.e. cookbook referenced in
>
production environments must be frozen).
>
>
Doing something like
>
>
node.run_list.expand(node.chef_environment).recipes.with_versions.each
>
do |recipe|
>
p recipe
>
end
>
>
will only include the versions if they have been explicitly set and
>
will not allow me to check to see if the version is locked.
>
>
Anyone have a good idea how to do this?
>
>
--
>
Cheers,
>
>
Peter Donald
--
Cheers,
Peter Donald
- [chef] Re: Cookbook versions on node, Peter Donald, 03/15/2012
Archive powered by MHonArc 2.6.16.