Opscode Chef Ohai plugin - How to get a custom plugin to run automatically?

Posted by JDS on Server Fault See other posts from Server Fault or by JDS
Published on 2013-06-26T16:36:20Z Indexed on 2013/06/29 10:23 UTC
Read the original article Hit count: 221

Filed under:

The Ohai docs are incomplete. Here's what I've been able to do so far:

  • I've created a custom plugin that adds one piece of node data called "my_custom_data"
  • it works when I load it manually in IRB
  • I've used the Ohai cookbook to get it loaded on the servers that need it

However, Ohai doesn't load it, neither during Chef runs nor if I run Ohai manually.

The docs, here, are of little use in answering this question. http://docs.opscode.com/ohai.html

© Server Fault or respective owner

Related posts about chef