- From: Andrea Campi <
>
- To:
- Subject: [chef] Re: OS Specific Recipes
- Date: Tue, 6 Dec 2011 23:44:19 +0100
On Tue, Dec 6, 2011 at 11:20 PM,
<
>
wrote:
>
I was just curious why you gave the ability to provide multiple versions of
>
the
>
same file or template for different OS's (File Specificity), but not for
>
recipes.
Speaking as just a user, I can think of only a handful of cookbooks
where I would want to completely override a recipe depending on the
OS: in most cases it's just a few resources that need to be
OS-specific, the rest of the recipe is cross-platform.
Moreover, in the case of templates, the file is (mostly) the same
across platform; it's just the content that changes, so that's easy.
Compare that to packages, where you have almost as many variations as
the number of existing distros :/
That said, in some case things diverge so much between distros that it
may make sense; in those cases it's quite trivial to roll your own.
See
https://github.com/opscode/cookbooks/tree/master/postgresql/recipes
for an example of how easy it can be.
Andrea
Archive powered by MHonArc 2.6.16.