Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 952 Bytes

deprecations_ohai_legacy_config.md

File metadata and controls

26 lines (22 loc) · 952 Bytes

+++ title = "Deprecation: Ohai::Config removal (OHAI-1)" draft = false

gh_repo = "chef-web-docs" robots = "noindex" sitemapExclude = true aliases = "/deprecations_ohai_legacy_config.html" +++

Ohai 8.8.0 (Chef Infra 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 Infra 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.