[chef] Re: Re: Windows Chef - WMI Dependancy


Chronological Thread 
  • From: Amit Dattani < >
  • To:
  • Subject: [chef] Re: Re: Windows Chef - WMI Dependancy
  • Date: Thu, 7 Aug 2014 17:19:58 +0100

So when bootstrapping a server it pulls the latest version from opscode. So the one which is not working is using chef-client 11.14.2

If I install 11.12.8 manually and then run through first run it works. I have pulled in the latest windows cookbook 1.34.1 and am using this on the server/environment which is not working.

Originally I was getting the ruby-wmi error. But since pulling in the windows 1.34.1 cookbook this is now gone and am only getting errors when trying to set the env['PATH']

Amit


On 7 August 2014 17:00, Bryan McLellan < " target="_blank"> > wrote:
On Thu, Aug 7, 2014 at 4:48 AM, Iain Prior < " target="_blank"> > wrote:

I’m having trouble with the “windows” cookbook: It appears that chef-client is trying to download the wmi dependency file from the internet. My problem is that my “clients” don’t have internet access, they need to get everything they are interested in from intranet resources. Please help/point me at the right place to start?

 

EDIT: I have managed to temporarily fix this by: knife cookbook delete windows 1.34.0

This has enabled the older version on the chef server 1.32 to become the used one.


What version of the Chef client are you using?

Chef 11.14.0+ and the Windows Cookbook 1.34.0+ switched from using the ruby-wmi gem to the wmi-lite. If you use Chef 11.14.2, it will already have the wmi-lite gem bundled with it, so version 1.34.0 of the windows cookbook won't need to download it.

That's the likely easiest solution to this specific problem.

What’s the right solution though?


In the general case, like Dan mentioned probably a local gem mirror.

Bryan




Archive powered by MHonArc 2.6.16.

§