[chef] Re: Re: Issues with creating an ohai plugin


Chronological Thread 
  • From: Charles Sullivan < >
  • To:
  • Subject: [chef] Re: Re: Issues with creating an ohai plugin
  • Date: Tue, 29 Jan 2013 17:08:26 -0600

Doug!  What is up man.  Glad to see you're using Chef.

Are you sure that ohai_plugins are being processed on the server you're running chef-client on?  I believe you need the ohai recipe in your runlist.  Send us the output from your chef-client debug log..

--Charlie

On Tue, Jan 29, 2013 at 4:56 PM, John Alberts < " target="_blank"> > wrote:
I'm not sure if this matters, but the examples all use symbols instead of strings for the keys and I've always used symbols as well.  I notice you have: customjava["java_home"] and customjava["result"].

John


On Tue, Jan 29, 2013 at 4:36 PM, Douglas Land < " target="_blank"> > wrote:
Hi all,

I apologize in advance because I'm guessing this is something dumb as
I'm pretty green to ruby. I'm trying to create a custom ohai plugin.
I've looked at examples and can't for the life of me figure out what
I'm doing wrong here:

https://github.com/looprock/ohai_plugins/blob/master/customjava.rb

When I try to query this I get:

knife node show cheftest.vast.com -a customjava -Fj
{
  "customjava": null
}

Any help would be greatly appreciated.



--
John Alberts



--
Charles Sullivan
">



Archive powered by MHonArc 2.6.16.

§