[chef] Re: Ohai and Chef...


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Ohai and Chef...
  • Date: Tue, 10 Sep 2013 09:41:37 -0700


On Tuesday, September 10, 2013 at 9:37 AM, Russell Bateman wrote:

I've installed a Chef server by downloading/curling a package from opscode.com. I've installed Chef clients by downloading a Debian package from the same page, copying and installing it on a number of VMs. I'm pleased by the relative success I'm achieving in using Chef.

I'm pretty sure that what I'm doing is not what's called Chef Solo, which as I understand it, is using opscode somehow in place of managing my own Chef server.

In http://docs.opscode.com/essentials_nodes_chef_run.html, I see something called Ohai, and I've heard it referenced in this group forum, read about it in references in documentation here and there. I don't have /etc/chef/ohai_plugins yet. Etc.
  1. What is the significance of Ohai?
  2. Is it "just there"?
  3. Why single it out a name in the first place rather than it just being "Chef"?
  4. Is it something that wasn't there originally?
  5. If I'm not explicitly listing it as a cookbook/recipe in my runs, am I nevertheless using it anyway?

Thanks for any comments--I'm still as green as they come at this Chef stuff.

Russ
Ohai is a thing that profiles your system--what OS/distro are you on, are you on a cloud, what does your networking look like, etc. Chef uses it as a library, but it can also be used as a standalone application. And it can be used outside of chef in any situation where you need to know those kinds of things about a system.

You can run ohai directly by (I believe this is the right path) `/opt/chef/embedded/bin/ohai` and see the data it finds about your system.

HTH,

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§