summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Use filter_map where we canperfTim Smith2021-04-212-6/+6
| | | | | | We only support Ruby 2.7+ and this takes less memory Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 17.0.38 by Chef Expeditorv17.0.38Chef Expeditor2021-04-203-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Gather CPU info from lscpu and merge data into cpu attribute namespace (#1454)Lance Albertson2021-04-1944-256/+2816
| | | | | | | | | | | | | | | | | | | | | | | * Gather CPU info from lscpu and create cpu/lscpu attribute namespace This adds a cpu/lscpu node data name space containing information from the lscpu command (if it exists). This augments and standardizes the information you can gather from /proc/cpuinfo which can be an issue on non-x86 architectures such as ppc64le and aarch64. Namely, when trying to determine whether or not a node is a guest or not. In addition, this properly fixes cpu counts on s390x nodes and uses lscpu data for determining cpu/total, cpu/real and cpu/cores if lscpu exists. * Fixes for detecting KVM guests on certain platforms and architectures On some architectures (i.e. ppc64le), dmidecode does not exist nor does the proper information in /proc/cpuinfo exist to detect KVM guests. To workaround that, we can use lscpu data to easily determine this as a fallback. In addition on CentOS 6, /sys/devices/virtual/misc/kvm does not exist so this works around that problem as well. Signed-off-by: Lance Albertson <lance@osuosl.org>
* Bump version to 17.0.37 by Chef Expeditorv17.0.37Chef Expeditor2021-04-193-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1654 from pravi/patch-2Tim Smith2021-04-181-1/+1
|\ | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Update minimum version of mixlib-shelloutPirate Praveen Arimbrathodiyil2021-04-181-1/+1
|/ | | Closes #1653
* Bump version to 17.0.36 by Chef Expeditorv17.0.36Chef Expeditor2021-04-163-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1652 from jaymzh/hostname-fixLamont Granquist2021-04-151-1/+22
|\ | | | | Fall back to v4-only getaddrinfo if we get socket errors
| * Fall back to v4-only getaddrinfo if we get socket errorsPhil Dibowitz2021-04-151-1/+22
|/ | | | | | | | | | | Handle the case where we have either v4- or v6-specific configuration or network issues that causes gethostaddr() to fail Note this was found due to a specific case: On OSX - and possibly others (freebsd), if you have a linklocal address for your hostname in /etc/hosts then `getaddrinfo` for your hostname will raise an exception. Signed-off-by: Phil Dibowitz <phil@ipom.com>
* Bump version to 17.0.35 by Chef Expeditorv17.0.35Chef Expeditor2021-04-153-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1651 from chef/rubocop_perf_againTim Smith2021-04-151-1/+1
|\ | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Update rubocop-performance to 1.10.2rubocop_perf_againTim Smith2021-04-141-1/+1
|/ | | | | | Fixes some bugs Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 17.0.34 by Chef Expeditorv17.0.34Chef Expeditor2021-04-123-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1647 from chef/aix_integersLamont Granquist2021-04-122-5/+6
|\ | | | | lpar_no and wpar_no in AIX Virtualizatin plugin should be Integers
| * lpar_no and wpar_no in AIX Virtualizatin plugin should be intsaix_integersTim Smith2021-04-092-5/+6
|/ | | | | | | These don't make sense as strings. We should make them ints. This is a breaking change. Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 17.0.33 by Chef Expeditorv17.0.33Chef Expeditor2021-04-073-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1645 from ramereth/os_releaseTim Smith2021-04-062-0/+297
|\ | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Create os_release plugin for parsing data from /etc/os-releaseLance Albertson2021-04-062-0/+297
|/ | | | | | | | | On newer Linux systems which use systemd, they should include /etc/os-release [1] which includes a lot of platform information that can be useful downstream. [1] https://www.freedesktop.org/software/systemd/man/os-release.html Signed-off-by: Lance Albertson <lance@osuosl.org>
* Bump version to 17.0.32 by Chef Expeditorv17.0.32Chef Expeditor2021-04-053-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1636 from bhaveshdavda/ohai-glibc-bhavesh.davda@oracle.comLamont Granquist2021-04-052-41/+22
|\
| * Ohai: Fix C-language unit test to match new versions and strings for glibcBhavesh Davda2021-03-251-3/+3
| | | | | | | | Signed-off-by: Bhavesh Davda <bhavesh.davda@oracle.com>
| * Ohai: Fix unit tests for C-language glibc version checkBhavesh Davda2021-03-251-30/+13
| | | | | | | | | | | | Replace invocation of libc.so.6 with "ldd --version" instead Signed-off-by: Bhavesh Davda <bhavesh.davda@oracle.com>
| * Ohai: Change C language plugin for glibc version detectionBhavesh Davda2021-03-251-8/+6
| | | | | | | | | | | | | | | | | | | | | | It's not safe to directly execute "libc.so.6" to determine glibc version. This can lead to segfaults when other shared libraries are preloaded using LD_PRELOAD or /etc/ld.so.preload due to circular relocation dependencies. Replace this version detection with "ldd --version" as "ldd" is a core part of glibc and reports the same version. Signed-off-by: Bhavesh Davda <bhavesh.davda@oracle.com>
* | Bump version to 17.0.31 by Chef Expeditorv17.0.31Chef Expeditor2021-04-023-5/+6
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #1637 from zalokhan/eth-offloadsTim Smith2021-04-022-0/+44
|\ \ | |/ |/| Signed-off-by: Tim Smith <tsmith@chef.io>
| * network: Add offload features to node.Zeeshan Lokhandwala2021-03-312-0/+44
|/ | | | | | Populate node with offload features information queried via ethtool -k. Signed-off-by: Zeeshan Lokhandwala <zeeshanl@fb.com>
* Bump version to 17.0.30 by Chef Expeditorv17.0.30Chef Expeditor2021-03-153-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1635 from chef/platform_orderTim Smith2021-03-151-5/+5
|\ | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Stick the common matched platforms firstplatform_orderTim Smith2021-03-131-5/+5
|/ | | | | | Nothing super scientific here, but it's about 10% faster to match if the data is hit sooner. Stick the super obscure stuff last. Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 17.0.29 by Chef Expeditorv17.0.29Chef Expeditor2021-03-133-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1632 from chef/xcpTim Smith2021-03-122-8/+12
|\ | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Update the XCP-ng Linux DetectionxcpTim Smith2021-03-092-8/+12
| | | | | | | | | | | | | | | | - All supported releases have an /etc/os-release file so nuke the legacy detection - The platform ID in the os-release file is XCP-ng in 7 and xenserver in 8 (this is a bug IMO) so update the XCP match - Downcase platform IDs. It seems like everyone makes these lowercase, but XCP-ng. There may be others and ohai platforms need to be lowercase Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 17.0.28 by Chef Expeditorv17.0.28Chef Expeditor2021-03-123-5/+6
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Bump version to 17.0.27 by Chef Expeditorv17.0.27Chef Expeditor2021-03-123-5/+6
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #1633 from chef/pidoraTim Smith2021-03-122-2/+2
|\ \ | | | | | | Remove support for Pidora which is discontinued
| * | Remove support for Pidora which is discontinuedpidoraTim Smith2021-03-122-2/+2
| | | | | | | | | | | | | | | | | | Pidora is Fedora 18 and hasn't been updated since 2014. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #1634 from chef/antergosTim Smith2021-03-122-2/+2
|\ \ \ | |/ / |/| | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Remove support for discontinued antergos distroantergosTim Smith2021-03-122-2/+2
|/ / | | | | | | | | | | | | This distro is now discontinued with the last release having shipped in 2019 Signed-off-by: Tim Smith <tsmith@chef.io>
* | Update RELEASE_NOTES.mdTim Smith2021-03-121-466/+1
|/ | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 17.0.26 by Chef Expeditorv17.0.26Chef Expeditor2021-03-093-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1631 from hron84/feature/add-support-sangoma-linuxTim Smith2021-03-091-1/+1
|\ | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Add support for Sangoma LinuxGabor Garami2021-03-091-1/+1
|/
* Bump version to 17.0.25 by Chef Expeditorv17.0.25Chef Expeditor2021-03-073-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1630 from chef/rubocop_perfTim Smith2021-03-062-2/+2
|\ | | | | Update rubocop-performance to 1.10.1 and revert optimization
| * Update rubocop-performance to 1.10.1Tim Smith2021-03-062-2/+2
| | | | | | | | | | | | | | This has some nice bugfixes. Revert the previous optimization that broke things Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 17.0.24 by Chef Expeditorv17.0.24Chef Expeditor2021-03-013-5/+6
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #1629 from chef/rubocop_perfTim Smith2021-03-012-2/+2
|\ \ | |/ | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Resolve new rubocop-performance warningrubocop_perfTim Smith2021-02-282-2/+2
|/ | | | | | Looks like this comparison is 2x faster on average according to docs Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove empty line in specTim Smith2021-02-231-1/+0
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 17.0.23 by Chef Expeditorv17.0.23Chef Expeditor2021-02-243-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.