[chef] Re: How to determine windows node OS info in a cookbook?


Chronological Thread 
  • From: Peter Loron < >
  • To:
  • Subject: [chef] Re: How to determine windows node OS info in a cookbook?
  • Date: Fri, 8 Feb 2013 08:32:05 -0800

Hi, Larry. This did not seem to be exposed in the cookbook, and I didn't find it when I looked in ohai output either. I'm using Chef 0.11.2, so maybe that was changed?

-pete

On Feb 7, 2013, at 7:47 PM, Larry Wright < "> > wrote:

You can use node["processor"]["machine"] to detect this. It will return i386 or x86_64, depending on the whether it is 32 or 64-bit respectively. 

On Thursday, February 7, 2013 at 9:41 PM, Peter Loron wrote:

I'm working on a cookbook that downloads and installs a MSI. However, I need to know if the node running the cookbook is 32 or 64 bit Windows. Any pointers on this?

Thanks.

-Pete





Archive powered by MHonArc 2.6.16.

§