- From: Joshua Timberman <
>
- To: "
" <
>
- Subject: [chef] Re: Dealing with back level ohai
- Date: Thu, 24 Jan 2013 05:40:27 +0000
- Accept-language: en-US
On 1/23/13 1:56 PM, "Vladimir Girnet"
<
>
wrote:
>
'platform_family' is the issue hereand it's used already in many cookbooks
>
I would recommend adding a step to upgrade ohai automatically, and reload
>
ohai in case of upgrade. Make this to be a first step at compile time.
Do you mean automatically upgrading ohai (and chef) in the cookbooks that
need to use platform_family?
Ohai 0.6.12 introduced the attribute, and Chef 0.10.10 introduced the
various methods for cookbooks/recipes to use it. Ohai 0.6.12 was released
in March last year, and Chef 0.10.10 was released in May. So
"platform_family" has been around long enough we've felt it safe to use
for cross platform use in our cookbooks.
Simply reloading Ohai may not be enough. Depending on the cookbook, the
newer methods in Chef for recipes may be required (platform_family?,
value_for_platform_family, e.g.).
I think the right thing to do is let it fail, and leave it up to the user
to upgrade Chef+Ohai, or downgrade/modify the cookbook.
Cheers,
Joshua
Archive powered by MHonArc 2.6.16.