Updated chef-client cookbook failing on value_for_platform_family

We are running chef 0.10.6 on the majority of our infrastructure.

in the chef-client cookbook readme it states:

Chef 0.9.12 or higher is required.
Chef 0.10.10 or higher is required for init_style “launchd”.

we are getting this error:
FATAL: NoMethodError: undefined method `value_for_platform_family’ for
#Chef::Recipe:0x7f8eb3ada400

Was this added in a more recent version of chef? If so, why is it not
mentioned in the readme?

I guess I’m approaching force-update time…

That version of the chef-client cookbook requires Chef 0.10.8 or higher and Ohai 0.6.14. Those versions added a platform_family value, which made it easier to add support for similar platform (rhel is red hat, centos,scientific,amazon,oracle). Most cookbooks are using this value now.

Tim Smith

Operations Engineer, SaaS Operations

M: +1 707.738.8132

TW: @tas50

webtrendshttp://www.webtrends.com/

Real-Time Relevance. Remarkable ROI.™

London | Portland | San Francisco | Melbourne | Tokyo

From: Jesse Campbell <hikeit@gmail.commailto:hikeit@gmail.com>
Reply-To: "chef@lists.opscode.commailto:chef@lists.opscode.com" <chef@lists.opscode.commailto:chef@lists.opscode.com>
Date: Thursday, December 20, 2012 10:19 AM
To: chef <chef@lists.opscode.commailto:chef@lists.opscode.com>
Subject: [chef] updated chef-client cookbook failing on value_for_platform_family

We are running chef 0.10.6 on the majority of our infrastructure.

in the chef-client cookbook readme it states:

Chef 0.9.12 or higher is required.
Chef 0.10.10 or higher is required for init_style “launchd”.

we are getting this error:
FATAL: NoMethodError: undefined method `value_for_platform_family’ for #Chef::Recipe:0x7f8eb3ada400

Was this added in a more recent version of chef? If so, why is it not mentioned in the readme?

I guess I’m approaching force-update time…

Huh... the checkin for value_for_platform_family appears to be dated
12/16/2011, whereas 0.10.8 was released on 12/15/2011 according to github.
oh well, would've been nice if the readme was up to date.

thanks for the help, i guess i'll get omnibus_updater running first before
updating the chef-client cookbook

On Thu, Dec 20, 2012 at 1:54 PM, Tim Smith Tim.Smith@webtrends.com wrote:

That version of the chef-client cookbook requires Chef 0.10.8 or higher
and Ohai 0.6.14. Those versions added a platform_family value, which made
it easier to add support for similar platform (rhel is red hat,
centos,scientific,amazon,oracle). Most cookbooks are using this value now.

*Tim Smith*

Operations Engineer, SaaS Operations

M: +1 707.738.8132

TW: @tas50

webtrends http://www.webtrends.com/

Real-Time Relevance. Remarkable ROI.™

London | Portland | San Francisco | Melbourne | Tokyo

From: Jesse Campbell hikeit@gmail.com
Reply-To: "chef@lists.opscode.com" chef@lists.opscode.com
Date: Thursday, December 20, 2012 10:19 AM
To: chef chef@lists.opscode.com
Subject: [chef] updated chef-client cookbook failing on
value_for_platform_family

We are running chef 0.10.6 on the majority of our infrastructure.

in the chef-client cookbook readme it states:

Chef 0.9.12 or higher is required.
Chef 0.10.10 or higher is required for init_style "launchd".

we are getting this error:
FATAL: NoMethodError: undefined method `value_for_platform_family' for
#Chef::Recipe:0x7f8eb3ada400

Was this added in a more recent version of chef? If so, why is it not
mentioned in the readme?

I guess I'm approaching force-update time...

That should have been called out in the cookbook. I fixed it and filed a bug.

http://tickets.opscode.com/browse/COOK-2108

Tim Smith

Operations Engineer, SaaS Operations

M: +1 707.738.8132

TW: @tas50

webtrendshttp://www.webtrends.com/

Real-Time Relevance. Remarkable ROI.™

London | Portland | San Francisco | Melbourne | Tokyo

From: Jesse Campbell <hikeit@gmail.commailto:hikeit@gmail.com>
Reply-To: "chef@lists.opscode.commailto:chef@lists.opscode.com" <chef@lists.opscode.commailto:chef@lists.opscode.com>
Date: Thursday, December 20, 2012 10:59 AM
To: chef <chef@lists.opscode.commailto:chef@lists.opscode.com>
Subject: [chef] Re: Re: updated chef-client cookbook failing on value_for_platform_family

Huh… the checkin for value_for_platform_family appears to be dated 12/16/2011, whereas 0.10.8 was released on 12/15/2011 according to github. oh well, would’ve been nice if the readme was up to date.

thanks for the help, i guess i’ll get omnibus_updater running first before updating the chef-client cookbook

On Thu, Dec 20, 2012 at 1:54 PM, Tim Smith <Tim.Smith@webtrends.commailto:Tim.Smith@webtrends.com> wrote:
That version of the chef-client cookbook requires Chef 0.10.8 or higher and Ohai 0.6.14. Those versions added a platform_family value, which made it easier to add support for similar platform (rhel is red hat, centos,scientific,amazon,oracle). Most cookbooks are using this value now.

Tim Smith

Operations Engineer, SaaS Operations

M: +1 707.738.8132

TW: @tas50

webtrendshttp://www.webtrends.com/

Real-Time Relevance. Remarkable ROI.™

London | Portland | San Francisco | Melbourne | Tokyo

From: Jesse Campbell <hikeit@gmail.commailto:hikeit@gmail.com>
Reply-To: "chef@lists.opscode.commailto:chef@lists.opscode.com" <chef@lists.opscode.commailto:chef@lists.opscode.com>
Date: Thursday, December 20, 2012 10:19 AM
To: chef <chef@lists.opscode.commailto:chef@lists.opscode.com>
Subject: [chef] updated chef-client cookbook failing on value_for_platform_family

We are running chef 0.10.6 on the majority of our infrastructure.

in the chef-client cookbook readme it states:

Chef 0.9.12 or higher is required.
Chef 0.10.10 or higher is required for init_style “launchd”.

we are getting this error:
FATAL: NoMethodError: undefined method `value_for_platform_family’ for #Chef::Recipe:0x7f8eb3ada400

Was this added in a more recent version of chef? If so, why is it not mentioned in the readme?

I guess I’m approaching force-update time…