summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Optimize our regexes and data searching a bitoptimizationsTim Smith2020-06-1126-61/+61
| | | | | | RuboCop Performance has gotten significantly better in the last few years. The cop that updates =~ to .match? is now smart enough to make sure you're not using the data later. With this fix 61 places we did more expensive regexes or uses select followed by .first have been fixed. Signed-off-by: Tim Smith <tsmith@chef.io>
* Update CHANGELOG.md to reflect the promotion of 16.1.1Chef Expeditor2020-05-151-12/+9
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 16.1.1 by Chef Expeditorv16.1.1Chef Expeditor2020-05-123-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1462 from chef/lcg/chef-utils-mashTim Smith2020-05-129-216/+37
|\ | | | | Depend on chef-utils gem so we can use ChefUtils::Mash
| * fix unrelated chefstyle issuesLamont Granquist2020-05-127-15/+15
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * Use ChefUtils::Mashlcg/chef-utils-mashLamont Granquist2020-05-112-201/+22
|/ | | | | | | Add chef-utils as a dependency and use the ChefUtils Mash implementation for ohai. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump version to 16.1.0 by Chef Expeditorv16.1.0Chef Expeditor2020-05-063-4/+12
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1455 from davide125/selinuxTim Smith2020-05-062-0/+169
|\ | | | | Add new selinux plugin for Linux
| * selinux: use debug instead of traceDavide Cavalca2020-05-061-1/+1
| | | | | | | | Signed-off-by: Davide Cavalca <dcavalca@fb.com>
| * selinux: fix rubocop issuesDavide Cavalca2020-04-222-3/+4
| | | | | | | | Signed-off-by: Davide Cavalca <dcavalca@fb.com>
| * selinux: add plugin to expose SELinux statusDavide Cavalca2020-04-222-0/+168
| | | | | | | | Signed-off-by: Davide Cavalca <dcavalca@fb.com>
* | Update CHANGELOG.md to reflect the promotion of 16.0.20Chef Expeditor2020-04-281-31/+28
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Bump version to 16.0.20 by Chef Expeditorv16.0.20Chef Expeditor2020-04-253-5/+6
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #1456 from chef/constantsTim Smith2020-04-251-3/+3
|\ \ | |/ |/| Avoid constant warnings when reloading ohai plugins
| * Avoid constant warnings when reloading ohai pluginsTim Smith2020-04-251-3/+3
|/ | | | | | | | | | /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/ohai-16.0.19/lib/ohai/plugins/windows/dmi.rb:23: warning: previous definition of DMI_TO_WIN32OLE was here /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/ohai-16.0.19/lib/ohai/plugins/windows/dmi.rb:39: warning: already initialized constant SPLIT_REGEX /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/ohai-16.0.19/lib/ohai/plugins/windows/dmi.rb:39: warning: previous definition of SPLIT_REGEX was here /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/ohai-16.0.19/lib/ohai/plugins/windows/dmi.rb:41: warning: already initialized constant WINDOWS_TO_UNIX_KEYS /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/ohai-16.0.19/lib/ohai/plugins/windows/dmi.rb:41: warning: previous definition of WINDOWS_TO_UNIX_KEYS was here Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 16.0.19 by Chef Expeditorv16.0.19Chef Expeditor2020-04-203-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1451 from ramereth/fix-dmi-virtualization-product-nameTim Smith2020-04-203-6/+6
|\ | | | | Use correct DMI attribute name for product name
| * Update .rubocop.ymlLance Albertson2020-04-171-2/+2
| | | | | | | | | | | | The `Layout/Tab` cop has been renamed to `Layout/IndentationStyle` Signed-off-by: Lance Albertson <lance@osuosl.org>
| * Use correct DMI attribute name for product nameLance Albertson2020-04-172-4/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | I discovered that ohai was incorrectly detecting our OpenStack guests showing the following output: { "systems": { } } With this change, it correctly shows the following output: { "systems": { "openstack": "guest" }, "system": "openstack", "role": "guest" } The problem was the fact that dmi/system/product was the incorrect attribute and should be dmi/system/product_name instead. Signed-off-by: Lance Albertson <lance@osuosl.org>
* Bump version to 16.0.18 by Chef Expeditorv16.0.18Chef Expeditor2020-04-173-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1445 from chef/expand-windows-dmiTim Smith2020-04-175-55/+289
|\ | | | | Add a plugin for Windows mimicing the Unix dmi plugin
| * Add some comments explaining test setup.expand-windows-dmiPete Higgins2020-04-151-0/+9
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Fix typo in comment.Pete Higgins2020-04-151-1/+1
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Fix chefstyle violations.Pete Higgins2020-04-152-2/+2
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Rename some keys from their Windows versions to Unix equivalents.Pete Higgins2020-04-152-0/+46
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Filter out unnedded properties.Pete Higgins2020-04-152-3/+43
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Fix copyright messages.Pete Higgins2020-04-152-3/+3
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Fix chefstyle violations.Pete Higgins2020-04-151-5/+5
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Properly handle multiple things being returned from Windows API.Pete Higgins2020-04-152-40/+79
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Simplify a small part of test setup.Pete Higgins2020-04-151-4/+1
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Add rubular link for de-camelcase regex.Pete Higgins2020-04-151-0/+1
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Add some comments.Pete Higgins2020-04-152-0/+19
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Fix chefstyle violations.Pete Higgins2020-04-152-11/+11
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Remove comments with reference info.Pete Higgins2020-04-152-19/+0
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Make the existing SystemEnclosure plugin depend on the new Windows DMI plugin.Pete Higgins2020-04-152-50/+3
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Add regression tests for Windows dmi plugin.Pete Higgins2020-04-151-0/+72
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Preserve original key names rather than reconstructing them.Pete Higgins2020-04-151-17/+11
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Do some key munging so stuff resembles other stuff.Pete Higgins2020-04-152-3/+30
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Expand windows dmi.Pete Higgins2020-04-151-0/+56
|/ | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Bump version to 16.0.17 by Chef Expeditorv16.0.17Chef Expeditor2020-04-103-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1449 from chef/fix-chefstyleTim Smith2020-04-102-10/+10
|\ | | | | Fix chefstyle violations.
| * Fix chefstyle violations.Pete Higgins2020-04-102-10/+10
|/ | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Chefstyle fixesTim Smith2020-04-072-2/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 16.0.16 by Chef Expeditorv16.0.16Chef Expeditor2020-04-073-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1446 from jaymzh/shardseedTim Smith2020-04-072-2/+27
|\ | | | | Make shard plugin more resilient and throw better errors
| * Make shard plugin more resilient and throw better errorsPhil Dibowitz2020-04-072-2/+27
|/ | | | | | | | | | | * Catch a variety of problems and Ohai::Log.error about them. Since this is an optional plugin, if we're hitting these, someone specifically requested this plugin, so an error is warranted. * We raise anyway, so that you don't spew further errors Fixes #1385 Signed-off-by: Phil Dibowitz <phil@ipom.com>
* Bump version to 16.0.15 by Chef Expeditorv16.0.15Chef Expeditor2020-04-013-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1444 from chef/expeditor_cachingTim Smith2020-03-311-1/+2
|\ | | | | Cache gem installs in Buildkite on Windows as well
| * Use caching on WindowsTim Smith2020-03-311-1/+2
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 16.0.14 by Chef Expeditorv16.0.14Chef Expeditor2020-04-013-5/+6
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.