summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Readme updatesreadmeTim Smith2020-07-231-7/+7
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 16.2.4 by Chef Expeditorv16.2.4Chef Expeditor2020-07-073-4/+12
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1478 from chef/perfTim Smith2020-07-0725-58/+58
|\ | | | | Use .match? when we don't need the result
| * Use .match? when we don't need the resultTim Smith2020-07-0625-58/+58
|/ | | | | | Avoid creating a bunch of match objects when we're not going to use the match results. Signed-off-by: Tim Smith <tsmith@chef.io>
* Update CHANGELOG.md to reflect the promotion of 16.2.3Chef Expeditor2020-06-301-12/+9
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 16.2.3 by Chef Expeditorv16.2.3Chef Expeditor2020-06-303-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1475 from cooperlees/ipv4_v6_nhTim Smith2020-06-302-0/+20
|\ | | | | Linux network plugin: Handle IPv6 next hops for IPv4 routes
| * Add a Rubular PermalinkCooper Lees2020-06-301-0/+1
| | | | | | | | | | | | - Show the regex working ... Signed-off-by: Cooper Lees <me@cooperlees.com>
| * Remove white space to please linterCooper Lees2020-06-301-1/+1
| | | | | | Signed-off-by: Cooper Lees <me@cooperlees.com>
| * Move regex out of the loop Cooper Lees2020-06-301-4/+1
| | | | | | | | | | Save regex lookup each iteration. This is hot. Co-authored-by: pete higgins <pete@peterhiggins.org>
| * Change to double quotes for impactCooper Lees2020-06-241-1/+1
| | | | | | | | Signed-off-by: Cooper Lees <me@cooperlees.com>
| * Add spaces on rspec expected hashesCooper Lees2020-06-241-2/+2
| | | | | | | | Signed-off-by: Cooper Lees <me@cooperlees.com>
| * Linux network plugin: Handle IPv6 next hops for IPv4 routesCooper Lees2020-06-242-0/+22
| | | | | | | | | | | | | | | | | | - Add handling for `via` where the inet6 address family is specified - Add rspec test to show working Addresses part of #1474 Signed-off-by: Cooper Lees <me@cooperlees.com>
* | Bump version to 16.2.2 by Chef Expeditorv16.2.2Chef Expeditor2020-06-303-4/+12
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #1476 from jaymzh/dockerTim Smith2020-06-301-2/+5
|\ \ | | | | | | Fix docker detection in ohai virtualization
| * | Fix docker detection in ohai virtualizationPhil Dibowitz2020-06-301-2/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We ran into an issue where when running in docker containers on GH Actions (which is on azure which is on HyperV), we were getting detected as being run on a hyperv guest... which is indirectly true, but not really the most correct answer. It turns out we were being a bit too strict in this regex. I think. So here's the `/proc/self/cgroup`: ``` 12:blkio:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd 11:devices:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd 10:memory:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd 9:freezer:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd 8:cpuset:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd 7:pids:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd 6:rdma:/ 5:hugetlb:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd 4:perf_event:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd 3:cpu,cpuacct:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd 2:net_cls,net_prio:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd 1:name=systemd:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd 0::/system.slice/docker.service ``` As you can see the second field (or 1st field if you 0-index) is empty, and it's still docker. Signed-off-by: Phil Dibowitz <phil@ipom.com>
* | Fix a few typosTim Smith2020-06-233-6/+6
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Add cspell taskTim Smith2020-06-234-1/+77
|/ | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Update CHANGELOG.md to reflect the promotion of 16.2.1Chef Expeditor2020-06-231-11/+8
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 16.2.1 by Chef Expeditorv16.2.1Chef Expeditor2020-06-233-4/+12
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1470 from chef/big_surTim Smith2020-06-223-30/+9
|\ | | | | Make sure Darwin hosts are always mac_os_x
| * Make sure Darwin hosts are always mac_os_xbig_surTim Smith2020-06-223-30/+9
|/ | | | | | | | | mac_os_x_server isn't a thing anymore and no third party darwin based operating systems ever took off. Fix this detectio and speed things up a tiny bit by assuming darwin == mac_os_x just like we already do with the platform_family Signed-off-by: Tim Smith <tsmith@chef.io>
* Update CHANGELOG.md to reflect the promotion of 16.2.0Chef Expeditor2020-06-171-11/+8
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 16.2.0 by Chef Expeditorv16.2.0Chef Expeditor2020-06-173-4/+12
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1468 from chef/blocklistTim Smith2020-06-172-8/+9
|\ | | | | Remove an internal reference to blacklist
| * Pin pry-stack_explorer for testsTim Smith2020-06-171-1/+1
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Remove an internal reference to blacklistblocklistTim Smith2020-06-061-7/+8
|/ | | | | | | It's past time for this term to go away, even when it's just the name of a method. 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>