Opscode
Home     Cookbooks     Blog     GitHub     Tickets 

Loading Custom Ohai Plugins

If you want to add custom/unofficial Ohai plugins to a Chef client:

1. Edit /etc/chef/client.rb
2. Add the following line to the end of the file:

You can choose any path you want.

3. Add your custom plugins there (i.e. /etc/ohai/plugins)
4. Reload the client:

Handy Hint

As an example, you can find a custom plugin that extends virtualization attribute adding a guest_lists sub-attribute here:

http://github.com/rubiojr/ohai-plugins/blob/master/virtualization_extensions.rb

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

Copyright © 2009 Opscode, Inc. All Rights Reserved.