summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix appveyor by no longer dancing around bundlertm/screw_appveyorThom May2017-11-211-3/+0
| | | | | | also remove ruby 2.3 since we don't use it with 13 Signed-off-by: Thom May <thom@chef.io>
* Merge pull request #1088 from pasiukevich/support_linux_mem_availableAdam Leff2017-11-132-0/+8
|\ | | | | Add support for Linux MemAvailable value
| * Add support for Linux MemAvailableDzmitry Pasiukevich2017-11-122-0/+8
|/ | | | Signed-off-by: Dzmitry Pasiukevich <dpasiukevich@gmail.com>
* Merge pull request #1084 from jaymzh/mdadmTim Smith2017-11-082-1/+15
|\ | | | | [mdadm] Support arrays more than 10 disks
| * [mdadm] Support arrays more than 10 disksPhil Dibowitz2017-11-082-1/+15
|/ | | | Signed-off-by: Phil Dibowitz <phil@ipom.com>
* Merge pull request #1083 from chef/ec2_hypervisorTim Smith2017-11-084-22/+72
|\ | | | | Detect new Amazon hypervisor used by the C5 instances
| * Remove the gem updates entirely from travis/appveyorTim Smith2017-11-082-2/+0
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Disable updating rubygems for nowec2_hypervisorTim Smith2017-11-072-2/+3
| | | | | | | | | | | | Rubygems 2.7.1 is non-functional Signed-off-by: Tim Smith <tsmith@chef.io>
| * Update EC2 specsTim Smith2017-11-071-4/+34
| | | | | | | | | | | | Make sure we have line returns as well since that's burned us before in specs Signed-off-by: Tim Smith <tsmith@chef.io>
| * Detect new Amazon hypervisor used by the C5 instancesTim Smith2017-11-071-16/+37
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #1080 from chef/deprecation_notesTim Smith2017-11-071-0/+4
|\ \ | |/ | | Add a note about the updated OHAI-11/12 deprecations
| * Add a note about the updated OHAI-11/12 deprecationsdeprecation_notesTim Smith2017-10-261-0/+4
|/ | | | | | We're deprecating these in Ohai 14 not 15 as previously planned Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #1079 from chef/13.6v13.6.0Lamont Granquist2017-10-243-9/+31
|\ | | | | Release 13.6
| * Release 13.613.6Tim Smith2017-10-243-9/+31
|/ | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #1060 from chef/rackspace_windowsTim Smith2017-10-242-3/+29
|\ | | | | Detect Rackspace on Windows
| * Add a VERY basic windows specrackspace_windowsTim Smith2017-10-241-0/+12
| | | | | | | | | | | | | | All we have is the main rackspace attribute and since we're checking ruby versions in the method we can't really mock out the wmi stuff. Signed-off-by: Tim Smith <tsmith@chef.io>
| * Detect Rackspace on WindowsTim Smith2017-10-241-3/+17
|/ | | | | | This uses the same method we previously used on EC2. It won't poll any data since that requires the xen cli tools, but it will show up as being on rackspace, which is an important first step. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #1077 from chef/fix_travisThom May2017-10-241-5/+6
|\ | | | | Properly allow ruby-head to fail in Travis
| * Don't fail to uninstall bundler on Ruby 2.5+fix_travisTim Smith2017-10-201-1/+1
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Update ruby releases we test onTim Smith2017-10-201-2/+2
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Properly allow ruby-head to fail in TravisTim Smith2017-10-201-2/+3
|/ | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #1075 from rmcleod8/aix_uptime_secondsTim Smith2017-10-202-3/+3
|\ | | | | Updating AIX uptime_seconds to reflect elapsed seconds from boot rather than epoch
| * Adding comment for the changermcleod82017-10-131-0/+1
| | | | | | | | Signed-off-by: rmcleod8 <richard.mcleod@gmail.com>
| * Updating AIX uptime_seconds to reflect elapsed seconds from boot rather than ↵rmcleod82017-10-132-3/+2
|/ | | | | | epoch Signed-off-by: rmcleod8 <richard.mcleod@gmail.com>
* Merge pull request #1071 from chef/amazon_packagesTim Smith2017-10-111-1/+1
|\ | | | | Gather packages on Amazon Linux
| * Gather packages on Amazon Linuxamazon_packagesTim Smith2017-10-101-1/+1
|/ | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #1070 from jeunito/bug/488Tim Smith2017-10-072-6/+14
|\ | | | | also check for lxc-start
| * also check for lxc-startJose Asuncion2017-10-062-6/+14
|/ | | | Signed-off-by: Jose Asuncion <jeunito@gmail.com>
* Fix regression in #1047 (#1066)Phil Dibowitz2017-10-043-2/+23
| | | | | | | | PR #1047 allows a plugin to return partial data which may be incredibly dangerous. It's a totally reasonable thing to want, however, so we gate it behind a plugin config. However, the default behavior reverts to where it was. Signed-off-by: Phil Dibowitz <phil@ipom.com>
* Critical Plugins (#1064)Phil Dibowitz2017-10-047-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new Ohai configuration `critical_plugins` which will cause Ohai to exit (or `fail` if inside of Chef) if the plugins in the list do not run successfully. This feature only supports Ohai 7-style named plugins, not the ancient Ohai 6-style stuff. Tests to follow, but: ``` $ cat /home/phild/ohai.rb ohai.critical_plugins << :Filesystem $ ./bin/ohai -c /home/phild/ohai.rb [2017-10-03T13:43:14-07:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping... [2017-10-03T13:43:14-07:00] ERROR: The following plugins marked as critical failed: [:Filesystem] ``` And when I run Chef: ``` [2017-10-03T13:44:11-07:00] FATAL: RuntimeError: The following plugins marked as critical failed: [:Filesystem2]. Failing Chef run. ``` This fixes #879. Signed-off-by: Phil Dibowitz <phil@ipom.com>
* Merge pull request #1063 from chef/tm/13_5v13.5.0Thom May2017-09-282-1/+13
|\ | | | | prep 13.5 for release
| * prep 13.5 for releasetm/13_5Thom May2017-09-282-1/+13
|/ | | | Signed-off-by: Thom May <thom@chef.io>
* Merge pull request #1059 from chef/ec2_missing_requireTim Smith2017-09-201-1/+1
|\ | | | | Make sure we require wmi/lite in the ec2 plugin
| * Make sure we require wmi/lite in the ec2 pluginec2_missing_requireTim Smith2017-09-191-1/+1
|/ | | | | | This gets required in other places, but it was meant to be uncommented. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #1056 from chef/timingTim Smith2017-09-192-19/+27
|\ | | | | Add plugin timing information in debug mode
| * Use benchmark vs. timeTim Smith2017-09-192-25/+27
| | | | | | | | | | | | Seems like a bit of overkill, but it does nicely format the time strings, which I'll take Signed-off-by: Tim Smith <tsmith@chef.io>
| * Add plugin timing information in debug modetimingTim Smith2017-09-112-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A reoccurring problem in Ohai is the runs taking too long. It's hard to troubleshoot since you can't tell what plugin is causing the long runs. This simple debug information provides us with the information we need to troubleshoot unusually long ohai run times. Example output ``` [2017-09-11T09:20:27-07:00] DEBUG: Plugin Ruby took 1.568772 seconds to run. [2017-09-11T09:20:27-07:00] DEBUG: Plugin Rust: ran 'rustc --version' and returned 0 [2017-09-11T09:20:27-07:00] DEBUG: Plugin Rust took 0.356488 seconds to run. [2017-09-11T09:20:31-07:00] DEBUG: Plugin Scala: ran 'scala -version' and returned 0 [2017-09-11T09:20:31-07:00] DEBUG: Plugin Scala took 3.216373 seconds to run. [2017-09-11T09:20:36-07:00] DEBUG: Ohai took 16.940469 total seconds to run. ``` Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #1058 from chef/ipv6_colon_regexAdam Leff2017-09-151-1/+2
|\ \ | | | | | | Fix the route support for IPV6 routes ending in ::
| * | Fix the route support for IPV6 routes ending in ::ipv6_colon_regexTim Smith2017-09-151-1/+2
|/ / | | | | | | | | | | | | | | | | Removing the ending word boundary in the regex allows is to capture the :: endings while still properly parsing other routes. I added a rubular comment as well so we know what this regex is actually trying to capture. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #1057 from chef/134v13.4.0Tim Smith2017-09-113-6/+115
|\ \ | | | | | | Release Ohai 13.4
| * | Release Ohai 13.4Tim Smith2017-09-113-6/+115
|/ / | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #1042 from oslerw/masterTim Smith2017-09-104-2/+120
|\ \ | | | | | | Add Arch Linux support to package plugin
| * | Add Arch Linux support to package pluginWilliam Osler2017-09-104-2/+120
| | | | | | | | | | | | Signed-off-by: William Osler <oslerw@fb.com>
* | | Merge pull request #1055 from jeunito/bug/833Tim Smith2017-09-082-0/+16
|\ \ \ | |_|/ |/| | Detect LXC if LXC and Docker are on the same host
| * | change expressionJose Asuncion2017-09-081-1/+1
| | | | | | | | | | | | Signed-off-by: Jose Asuncion <jeunito@gmail.com>
| * | refactoringJose Asuncion2017-09-081-3/+1
| | | | | | | | | | | | Signed-off-by: Jose Asuncion <jeunito@gmail.com>
| * | detect lxc guest using /proc/1/environJose Asuncion2017-09-072-0/+18
| | | | | | | | | | | | Signed-off-by: Jose Asuncion <jeunito@gmail.com>
* | | Merge pull request #1033 from chef/azureTim Smith2017-09-088-20/+313
|\ \ \ | | | | | | | | Add Azure metadata endpoint support
| * | | Move the require into the pluginTim Smith2017-09-081-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Add azure plugin specs for metadataTim Smith2017-09-071-0/+81
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>