Opscode
Home     Cookbooks     Blog     GitHub     Tickets 

Using Ohai

While Ohai is a fully standalone program, it is most commonly used in Chef to provide node data in JSON.

Installation

To use Ohai, you must first install it.

Usage in Chef

Node data from ohai is provided to Chef via an object named node.

Standalone Operation

Ohai can also be run outside of Chef, so you can query your system for various data.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Copyright © 2009 Opscode, Inc. All Rights Reserved.