- From: Joshua Timberman <
>
- To:
- Subject: [chef] Re: Re: Re: release 0.9.12 does not include [CHEF-1423] - Support versions of recipes on the run list
- Date: Tue, 11 Jan 2011 07:56:16 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ohai!
On Jan 11, 2011, at 2:33 AM, Ringo De Smet wrote:
>
Have you also been thinking of versioning roles? I think this would
>
come in handy to evolve your setups.
>
>
The role "webserver" today could be totally different tomorrow, so
>
being able to link
>
>
to <cookbooks>@1.0 and
>
>
to <cookbooks>@2.0 makes sense to me.
I think this might be covered by environment run lists in 0.10 roles. The
cookbook version constraints will be used in environments themselves.
% cat environments/production.rb
name "production"
cookbook_versions(
"apache" => "1.0"
)
% cat environments/development.rb
name "development"
cookbook_versions(
"apache" => "1.5"
)
All the cookbooks would be versioned, and then you can pin a particular
version to an environment. If you wanted to test a new deployment in a
particular environment, for example swapping out apache for nginx in
development:
% cat roles/webserver.rb
name "webserver"
env_run_lists(
"production" => ["recipe[apache]"],
"development" => ["recipe[nginx]"]
)
- --
Opscode, Inc
Joshua Timberman, Technical Evangelist
IRC, Skype, Twitter, Github: jtimberman
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
iEYEARECAAYFAk0sb5AACgkQO97WSdVpzT2V7ACfRQqxuPPruVShibHTWMyL1uiZ
i/8AoI0VUDE/HiWXNBFzeWMS1zNwdPl4
=S1SU
-----END PGP SIGNATURE-----
Archive powered by MHonArc 2.6.16.