Skip to content

Instantly share code, notes, and snippets.

@jessehu
Created July 7, 2014 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessehu/deacfae0996b7c13673f to your computer and use it in GitHub Desktop.
Save jessehu/deacfae0996b7c13673f to your computer and use it in GitHub Desktop.
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

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