[chef] Chef windows cookbook and wmi-lite


Chronological Thread 
  • From: Morgan Blackthorne < >
  • To: " " < >
  • Subject: [chef] Chef windows cookbook and wmi-lite
  • Date: Thu, 7 Aug 2014 09:24:24 -0700

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



Archive powered by MHonArc 2.6.16.

§