Commit d3fa30ac authored by sersut's avatar sersut
Browse files

Update about disabling OHAI 7 plugins.

parent 3a38c555
......@@ -198,3 +198,27 @@ CHEF-1761 introduced a regression for signal handling when not in daemon mode
(see CHEF-5172). Chef will now, once again, exit immediately on SIGTERM if it
is not in daemon mode, otherwise it will complete it's current run before
existing.
#### Disabling plugins with Ohai 7
Ohai 7 is backwards compatible with Ohai 6 plugins. However the code to disable plugins have changed slightly.
Previously the code to disable plugins:
```
Ohai::Config[:disabled_plugins] = ["passwd","dmi"]
```
should change to
```
Ohai::Config[:disabled_plugins] = [:Passwd,:Dmi]
```
if you want to disable custom Ohai 6 plugins in addition to Ohai 7 plugins you can do:
```
Ohai::Config[:disabled_plugins] = [:Passwd,:Dmi,"my_plugin"]
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment