Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable unneccessary ohai plugins to compact the chef node size so as to speed up chef get/search API calls
https://wiki.opscode.com/display/chef/Disabling+Ohai+Plugi
http://engineering.voxer.com/2013/03/22/chef-part-2-performance/
In Ohai 7, the ohai plugin name is not the plugin file name, but defined in the plugin file. Here is what I used in Ohai 7.0.4 :
Ohai::Config[:disabled_plugins] = [:Azure, :Filesystem, :Cloudv2, :Virtualization, :Virtualizationinfo, :Dmi, :Zpools, :Blockdevice, :Lsb, :Nodejs, :Languages, :Php, :Lua, :Perl, :C, :Java, :Python, :Erlang, :Groovy, :Ruby, :Mono, :Os, :Openstack, :Cloud, :Rackspace, :Ps, :Command, :Initpackage, :Rootgroup, :Keys, :Sshhostkey, :Ohai, :Chef, :Ohaitime, :Passwd, :Gce, :Systemprofile, :Linode, :Ipscopes, :Eucalyptus, :Ec2]
@brauliobo
Copy link

where to put this configuration?

@brauliobo
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment