Prevent ohai run


I use chef as a packer provisioner for docker. How can prevent ohai execution as anyway it doesn’t return any useful data?

Chef itself uses data from a small number of plugins to know what platform it is on, so you can’t completely disable ohai. But there is a --minimal-ohai flag that should do mostly what you are asking.