Deprecation: Ohai::Config removal (OHAI-1)
Ohai 8.8.0 (Chef Client 12.6.0) introduced a new Ohai configuration system as defined in RFC-053. This system replaced the existing usage of Ohai::Config
config system, which will be removed in Chef Client 13.
Remediation
Previous Ohai configuration values in the client.rb
file need to be updated for the new configuration system format. For example, to configure the plugin_path
value previously you would set Ohai::Config[:plugin_path] = "/etc/chef/ohai/plugins.local"
, where as you would now use ohai.plugin_path = "/etc/chef/ohai/plugins.local"
. See the Ohai Configuration Documentation for additional usage information.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/deprecations_ohai_legacy_config/