-
-
Notifications
You must be signed in to change notification settings - Fork 806
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Ohai plugin deprication warning #239
Comments
@damacus Thanks for the report. |
No problem I'll see what I can come up with. Thanks for the links to the
|
Would you be open to creating 2 plugins and loading the correct version based on the version of Ohai present? |
@tas50 I am led to believe that using Ohai 7 plugins with Ohai 6 is compatible, obviating the need for two plugins and more switching logic. I have not tested this yet. |
Few thoughts that could get this moving. Perhaps it would be possible to use node attributes to choose which ohai plugin version to use? Another option - to detect chef version and to choose which type of nginx ohai plugin to load accordingly? |
#422 includes a fix for this by shipping a v7 plugin on v7+ hosts |
This particular issue has been pulled into the chef_nginx cookbook 2.8.0 release. The chef_nginx cookbook is a fork of this cookbook with many of the outstanding issues in the 2.7.6 release resolved. The release is backwards compatible with this cookbook outside of the name change, which obviously requires updating runlist and and metadata dependencies. I'd highly suggest giving it a try to see if this resolves you nginx cookbook woes. https://github.com/chef-cookbooks/chef_nginx |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
/etc/chef/ohai_plugins/nginx.rb is a version 6 plugin this will be deprecated in future versions of ohai.
The text was updated successfully, but these errors were encountered: