Chef windows cookbook and wmi-lite

I just started seeing this error as of the other day:

================================================================================
Recipe Compile Error in
/var/chef/cache/cookbooks/windows/libraries/wmi-lite-gem.rb

ArgumentError

chef_gem[wmi-lite] (dynamically defined) had an error: ArgumentError:
Illformed requirement [""]

Cookbook Trace:

/var/chef/cache/cookbooks/windows/libraries/wmi-lite-gem.rb:33:in rescue in <top (required)>' /var/chef/cache/cookbooks/windows/libraries/wmi-lite-gem.rb:25:in<top
(required)>’

Relevant File Content:

/var/chef/cache/cookbooks/windows/libraries/wmi-lite-gem.rb:

26: require 'wmi-lite’
27: rescue LoadError
28: empty_node = Chef::Node.new
29: empty_events = Chef::EventDispatch::Dispatcher.new
30: run_context = Chef::RunContext.new(empty_node, {}, empty_events)
31:
32: wmi_gem = Chef::Resource::ChefGem.new(‘wmi-lite’, run_context)
33>> wmi_gem.run_action(:install)
34:
35: require 'wmi-lite’
36: end
37:
38:

It looks like this is because it’s trying to fire off and talk to
rubygems.org before I have the proxies configured for that node. Is there a
version of cookbook that I can pin to before wmi-lite became a requirement?
ISTR that this is mainly needed for 11.14.x clients from the other thread
floating around.


~~ StormeRider ~~

“Every world needs its heroes […] They inspire us to be better than we
are. And they protect from the darkness that’s just around the corner.”

(from Smallville Season 6x1: “Zod”)

On why I hate the phrase “that’s so lame”… http://bit.ly/Ps3uSS

On Thu, Aug 7, 2014 at 12:24 PM, Morgan Blackthorne stormerider@gmail.com
wrote:

It looks like this is because it's trying to fire off and talk to
rubygems.org before I have the proxies configured for that node. Is there
a version of cookbook that I can pin to before wmi-lite became a
requirement? ISTR that this is mainly needed for 11.14.x clients from the
other thread floating around.

Version 1.33.1 of the Windows cookbook uses ruby-wmi, which comes with
versions of Chef before 11.14.2.

Versions of Chef 11.14.2 and higher use wmi-lite, as does the Windows
cookbook starting with 1.34.0.

Bryan

Perfect, thanks.

--
~~ StormeRider ~~

"Every world needs its heroes [...] They inspire us to be better than we
are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS

On Thu, Aug 7, 2014 at 9:36 AM, Bryan McLellan btm@loftninjas.org wrote:

On Thu, Aug 7, 2014 at 12:24 PM, Morgan Blackthorne <stormerider@gmail.com

wrote:

It looks like this is because it's trying to fire off and talk to
rubygems.org before I have the proxies configured for that node. Is
there a version of cookbook that I can pin to before wmi-lite became a
requirement? ISTR that this is mainly needed for 11.14.x clients from the
other thread floating around.

Version 1.33.1 of the Windows cookbook uses ruby-wmi, which comes with
versions of Chef before 11.14.2.

Versions of Chef 11.14.2 and higher use wmi-lite, as does the Windows
cookbook starting with 1.34.0.

Bryan