- From: Lamont Granquist <
>
- To: Jay Perry <
>
- Cc: Tom Duffield <
>, "
" <
>
- Subject: [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns
- Date: Mon, 07 Apr 2014 08:54:01 -0700
I'd start with no version constraints in cookbooks and then pin
with equality in environments. You might use ~> 1.0
semver-assuming constraints for external cookbooks, but if you're
testing your cookbooks you should be able to pull in major version
bumps of upstream cookbooks and if the tests pass, then you
weren't affected by the major version bump so you should be able
to ship it, so why be fussy and create yourself more work managing
the major version bump manually? The more you go towards
continuous deployment/delivery, the less you should worry about
version numbers and the more you should lean on your tests -- of
course without good testing, then the argument runs the other
direction and you probably should be more defensive.
On 4/4/14, 12:43 PM, Jay Perry wrote:
"
type="cite">
Tom/Lamont,
Got another question regarding version dependencies with
the infrastructure, platform, application cookbook pattern. I
plan to lock application cookbooks at the environment file
level and then the cookbooks locking like so in their metadata
file:
Application Cookbook
- use the optimistic operator for all cookbooks it depends
on, for example ~> 1.0.0
Platform Cookbook
- this could either use the optimistic operator or no
version constraint at all
Infrastructure Cookbook
- no version constraint
My question is do you see this falling apart? If I had a
wrapper cookbook say "acme-java" should that lock to a
specific version of the "java" cookbook? Avoiding version
constraint conflicts can be hard and I want things to be
loosly locked but if they need to be locked only at the bug
fix level. I feel the application cookbook must be locked at
the environment file level. Maybe this is where I struggle
when the base role cookbook isn't tested with the application
cookbook since if the base cookbook depends on specific
versions then things conflict. Thoughts on this?
Thanks,
Jay
|
- [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns, (continued)
- [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns, Lamont Granquist, 04/03/2014
- [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns, Jay Perry, 04/03/2014
- [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns, Lamont Granquist, 04/03/2014
- [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns, Jay Perry, 04/03/2014
- [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns, Jason Perry, 04/03/2014
- [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns, Lamont Granquist, 04/03/2014
- [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns, Jay Perry, 04/03/2014
- [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns, Lamont Granquist, 04/03/2014
- [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns, Jay Perry, 04/03/2014
- [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns, Jay Perry, 04/04/2014
- [chef] Re: Re: Re: Re: Re: More on Cookbook Design Patterns, Lamont Granquist, 04/07/2014
Archive powered by MHonArc 2.6.16.