summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #939 from chef/deprecate_old_configTim Smith2017-01-242-88/+2
|\ | | | | Remove deprecated config logic
| * Remove deprecated config logicTim Smith2017-01-082-88/+2
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #933 from chef/commandTim Smith2017-01-241-318/+1
|\ \ | | | | | | Remove the deprecated run_command and popen4 methods
| * | Remove the deprecated run_command and popen4 methodscommandTim Smith2016-12-201-318/+1
| | | | | | | | | | | | | | | | | | This is very much legacy and has long since been replaced by shell_out Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #918 from ↵Tim Smith2017-01-241-1/+2
|\ \ \ | | | | | | | | | | | | | | | | chef/COOL-626/tduffield/use-cpu-name-for-model-name-windows Use name for Windows CPU model_name
| * | | Use name for Windows CPU model_nameCOOL-626/tduffield/use-cpu-name-for-model-name-windowsTom Duffield2016-12-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the "name" value for the model_name, and move description to the description field. Signed-off-by: Tom Duffield <tom@chef.io>
* | | | Merge pull request #930 from chef/sigarTim Smith2017-01-2410-485/+1
|\ \ \ \ | | | | | | | | | | Remove usage of the Sigar gem
| * | | | Remove usage of the Sigar gemsigarTim Smith2016-12-2010-485/+1
| | |/ / | |/| | | | | | | | | | | | | | | | | | Sigar was a really cool idea, but it’s a dead project now. The data is questionable at best and not getting any better as time goes on. We should figure out how to support these platforms vs. hoping that Sigar is doing the right thing. This does remove a lot of support for HP-UX, but I seriously doubt it worked to begin with. We should do that right sometime. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | | Release 8.23.0Tim Smith2017-01-241-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | | | Release 8.22.1Tom Duffield2017-01-231-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Tom Duffield <tom@chef.io>
* | | | Only look for xlc on AIX and rename collect_cc to collect_sunproTim Smith2017-01-231-3/+9
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | | | Rework the specs to be platform specificTim Smith2017-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add specs for checking that xcode exists on darwin Remove the odd double glibc mess Don't do ruby logic in the expects. That defeats the entire purpose of the specs if we're doing the same faulty logic. Just include the expected string Signed-off-by: Tim Smith <tsmith@chef.io>
* | | | Fix gcc data collectionTim Smith2017-01-201-36/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | None of the values were being populated with the refactoring. Also gcc hadn’t been collecting anything for a while. This gives us real data for gcc: "c": { "gcc": { "configured_with": "--prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1", "description": "Apple LLVM version 8.0.0 (clang-800.0.42.1)", "version": "8.0.0", "target": "x86_64-apple-darwin16.3.0", "thread_model": "posix" } },
* | | | Update GCC sample outputTim Smith2017-01-201-15/+17
| | | |
* | | | Don't check CC on DarwinTim Smith2017-01-201-4/+1
| | | | | | | | | | | | | | | | | | | | CC is clang on Darwin and the output is different so this just fails every time. We *should* add clang checks at some point though.
* | | | Remove extra windows check for glibcTim Smith2017-01-201-1/+0
| | | | | | | | | | | | | | | | | | | | We’re only collecting this data on Windows now so don’t bother checking if we’re on Windows again
* | | | Consistent loggingTim Smith2017-01-201-4/+3
| | | |
* | | | Further split out platforms in the C pluginTim Smith2017-01-201-4/+8
| | | | | | | | | | | | | | | | | | | | cl / devenv are windows only so avoid checking those on *nix HP UX things should only get checked on HPUX
* | | | add colons back to debug logErik Gomez2017-01-201-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Erik Gomez <e@eriknicolasgomez.com>
* | | | move functions to topErik Gomez2017-01-201-25/+27
| | | | | | | | | | | | | | | | Signed-off-by: Erik Gomez <e@eriknicolasgomez.com>
* | | | fixed ChefstyleErik Gomez2017-01-201-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Erik Gomez <e@eriknicolasgomez.com>
* | | | refactor c.rb based on PR feedbackErik Gomez2017-01-201-60/+71
| | | | | | | | | | | | | | | | Signed-off-by: Erik Gomez <e@eriknicolasgomez.com>
* | | | fix gcc and cc for darwin (no cli tools installed)Erik Gomez2017-01-201-21/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If darwin is found: 1. shell out to /usr/bin/xcode-select -p 2a. If it returns an exit code other than 0, assume xcode command line tools are not installed and do not run these commands. 2b. If it returns an exit code of 0, run the commands. Signed-off-by: Erik Gomez <e@eriknicolasgomez.com>
* | | | Only explicitly initialize a logger when neededtm/fix_app_loggingThom May2017-01-202-4/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | When we're running Ohai as a standalone application, we need to fire up the logger with our desired location, but when we're run from inside Chef, we're passed the client's loggers. Signed-off-by: Thom May <thom@chef.io>
* | | updating cloud plugin to populate azure private_ip as it's currently nilohai13Richard Shade2017-01-041-0/+1
| | | | | | | | | | | | Signed-off-by: Richard Shade <rshade@rightscale.com>
* | | Better debug loggingTim Smith2016-12-2217-78/+103
|/ / | | | | | | | | | | | | | | | | Gracefully fail in virtual box Include plugin name in more logs Be consistent in the log output format Help figure out how Virtualization systems were detected with logging Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #921 from chef/cumulusTim Smith2016-12-201-43/+82
|\ \ | | | | | | Properly detect Cumulus Linux platform / version
| * | Fix comment typoTim Smith2016-12-201-1/+1
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Better error handling if we can't determine Cumulus versioncumulusTim Smith2016-12-191-6/+14
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Reorder detection of platforms to speed things upTim Smith2016-12-151-22/+22
| | | | | | | | | | | | | | | | | | Check the more popular platforms first since those are most likely to match. Parallels have to come before RHEL though since it looks like RHEL. Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Properly detect Cumulus Linux platform / versionTim Smith2016-12-151-21/+52
| | | | | | | | | | | | | | | | | | Detect cumulus Linux systems if they have /etc/cumulus directory. Use platform of ‘cumulus’ and platform_family debian since it’s Debian 8.5. Parse version from their config directory. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Detect guests running on Veertu hypervisorVeertuTim Smith2016-12-152-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Hypervisor for OS that runs Linux and WIndows https://veertu.com/ Signed-off-by: Tim Smith <tsmith@chef.io>
* | | conditional to better identify hyper-v systmsBob Dean2016-12-151-3/+5
| | | | | | | | | | | | Signed-off-by: Bob Dean <radean@hotmail.com>
* | | Windows guest support on Hyper-v and Xen.Bob Dean2016-12-141-0/+8
|/ / | | | | | | Signed-off-by: Bob Dean <radean@hotmail.com>
* | Merge pull request #907 from Fodoj/masterTim Smith2016-12-122-0/+15
|\ \ | |/ |/| Fetch AWS Account ID from metadata
| * Memoize dynamic AWS dataKirill Shirinkin2016-12-121-7/+9
| | | | | | | | Signed-off-by: Kirill Shirinkin <fodojyko@gmail.com>
| * Fetch AWS Account ID from metadataKirill Shirinkin2016-11-302-0/+13
| | | | | | | | Signed-off-by: Kirill Shirinkin <fodojyko@gmail.com>
* | Merge pull request #893 from davide125/getconfThom May2016-12-021-0/+45
|\ \ | | | | | | Add sysconf plugin to expose system configuration variables
| * | Add sysconf plugin to expose system configuration variablesDavide Cavalca2016-11-301-0/+45
| | | | | | | | | | | | Signed-off-by: Davide Cavalca <dcavalca@fb.com>
* | | Merge pull request #916 from chef/erlangTim Smith2016-12-011-5/+3
|\ \ \ | |/ / |/| | Pull the complete version string of Erlang
| * | Pull the complete version string of ErlangerlangTim Smith2016-12-011-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | Improve the shellout with help of StackOverflow and srenatus. This requires less fragile work in Ruby by formatting the data in erlang properly. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Release 8.22.0Tim Smith2016-11-301-1/+1
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #909 from chef/bahamas10-dave-1426559693Tim Smith2016-11-301-14/+9
|\ \ \ | | | | | | | | Rework / fix logic in the joyent plugin and improve specs
| * | | Use a regex vs. a split that didn’t seem to workTim Smith2016-11-291-3/+1
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Return an empty array to avoid failures later with .eachTim Smith2016-11-291-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Set the attribute to nil vs. reading the file twiceTim Smith2016-11-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Nil is used throughout Ohai Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Merge branch 'dave-1426559693' of git://github.com/bahamas10/ohai into ↵Tim Smith2016-11-291-11/+8
| |\ \ \ | | | | | | | | | | | | | | | bahamas10-dave-1426559693
| | * | | cleanup joyent.rbDave Eddy2015-05-051-13/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - condense code - touch up style - don't stat(2) before open(2)
* | | | | Merge pull request #908 from numericillustration/masterThom May2016-11-301-1/+5
|\ \ \ \ \ | |_|_|/ / |/| | | | fix for #891 to detect the global zone of a Solaris system as a Virt …
| * | | | chefstyle fixesMichael Hicks2016-11-291-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Michael Hicks <michael.hicks@joyent.com>