summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Linux Virtualization: Use the new nests `systems` format for lxd / lxcnested_virtTim Smith2018-11-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Somehow we never updated these for the new format. This means you can end up with data like this which is wrong in both the legacy and the new format. ```json { "systems": { "xen": "guest" }, "system": "lxd", "role": "host" } ``` with this change we get: ```json { "systems": { "xen": "guest", "lxd": "host" }, "system": "lxd", "role": "host" } ``` Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 15.0.12 by Chef Expeditorv15.0.12chef-14Chef Expeditor2018-11-273-5/+6
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #1299 from chef/os_release_detectionTim Smith2018-11-272-891/+657
|\ | | | | /etc/os-release based OS detection
| * Move clearlinux back to the legacy methodos_release_detectionTim Smith2018-11-262-38/+25
| | | | | | | | | | | | It's os-release file is not in a standard location Signed-off-by: Tim Smith <tsmith@chef.io>
| * Remove nexus_centos os-release detection from the legacy methodTim Smith2018-11-261-8/+3
| | | | | | | | | | | | We'll never get to this code since it requires a os-release file Signed-off-by: Tim Smith <tsmith@chef.io>
| * Remove legacy testing for platforms that have os-release filesTim Smith2018-11-261-107/+1
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Use shellout properly for kernel version detectionTim Smith2018-11-262-11/+13
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Move gentoo entirely to os-release based detectionTim Smith2018-11-262-8/+0
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Fix platform remapping on nexus_centosTim Smith2018-11-262-135/+118
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Move clearlinux logic to os-releaseTim Smith2018-11-262-31/+1
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Make sure centos continues to correctly parse out versionsTim Smith2018-11-261-2/+10
| | | | | | | | | | | | CentOS doesn't do the right thing with the os-release file. They treat it differently than redhat and every other distro I've seen. We need to work around that. Signed-off-by: Tim Smith <tsmith@chef.io>
| * Update versions in the specsTim Smith2018-11-261-23/+23
| | | | | | | | | | | | Bumps things for the last 10 years Signed-off-by: Tim Smith <tsmith@chef.io>
| * Rely on os-release for Mint and RaspbianTim Smith2018-11-262-9/+1
| | | | | | | | | | | | Nothing supported here lacks os-release files Signed-off-by: Tim Smith <tsmith@chef.io>
| * Move Arch and Alpine detection to os-releaseTim Smith2018-11-262-25/+0
| | | | | | | | | | | | These systems always have an os-release file. No need for the legacy method. Signed-off-by: Tim Smith <tsmith@chef.io>
| * Switch the platform remapping to a hash tableTim Smith2018-11-261-31/+26
| | | | | | | | | | | | This is faster and also easier to read Signed-off-by: Tim Smith <tsmith@chef.io>
| * Remap nexus -> nexus_centos to match our previous nameTim Smith2018-11-262-0/+6
| | | | | | | | | | | | This is wrong, but it's what we've been doing for a while Signed-off-by: Tim Smith <tsmith@chef.io>
| * Use /etc/os-release detection for cumulusTim Smith2018-11-262-68/+3
| | | | | | | | | | | | I've confirmed this works on a cumulus system. Not sure where the previous logic came from. Signed-off-by: Tim Smith <tsmith@chef.io>
| * Use the absolute path to unameTim Smith2018-11-262-12/+29
| | | | | | | | | | | | Avoid having to search path when it's always in the same path Signed-off-by: Tim Smith <tsmith@chef.io>
| * Add a simple method for platform version detectionTim Smith2018-11-261-3/+10
| | | | | | | | | | | | Break out more logic into simpler methods that can be tested Signed-off-by: Tim Smith <tsmith@chef.io>
| * ChefstyleTim Smith2018-11-251-20/+19
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Remove legacy testing of systems that always have an os-release fileTim Smith2018-11-251-182/+49
| | | | | | | | | | | | | | | | These are modern operating systems that will always use the new os-release logic: Fedora, Arch, Linux Mint, raspbian, amazon 2, clearos Signed-off-by: Tim Smith <tsmith@chef.io>
| * Remove the older platform_family testsTim Smith2018-11-251-30/+0
| | | | | | | | | | | | We test this better now Signed-off-by: Tim Smith <tsmith@chef.io>
| * Test the platform and platform_family mappingTim Smith2018-11-251-5/+137
| | | | | | | | | | | | This avoids the need to test the full plugin run on each of these platforms and it keeps us from accidentally breaking something here later on. Signed-off-by: Tim Smith <tsmith@chef.io>
| * Remove duplicate arista_eos platformTim Smith2018-11-251-1/+1
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Add cumulus linux os-release remappingTim Smith2018-11-241-0/+2
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Shuffle around the specs a bitTim Smith2018-11-241-792/+797
| | | | | | | | | | | | Get ready to refactor these Signed-off-by: Tim Smith <tsmith@chef.io>
| * Use /etc/os-release to detect linux platformsTim Smith2018-11-242-42/+75
| | | | | | | | | | | | | | | | | | This is the modern way of identifying Linux platforms and versions. It's far more reliable than the brittle regex mess that we have built up over the last decade. It also allows us to easily detect unknown / obscure distros. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 15.0.11 by Chef Expeditorv15.0.11Chef Expeditor2018-11-273-5/+6
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #1297 from chef/opensuse15Tim Smith2018-11-272-3/+40
|\ \ | |/ | | Correctly detect openSUSE leap 15+
| * Correctly detect openSUSE leap 15+opensuse15Tim Smith2018-11-232-3/+40
| | | | | | | | | | | | We need to correctly read in the data in /etc/os-release and do the right thing. We already did this for SLES 15. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 15.0.10 by Chef Expeditorv15.0.10Chef Expeditor2018-11-263-5/+6
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #1305 from chef/remove_old_virtualboxTim Smith2018-11-263-62/+1
|\ \ | | | | | | Remove circa ~2005 virtualization hypervisor detection
| * | Remove circa ~2005 virtualization hypervisor detectionremove_old_virtualboxTim Smith2018-11-263-62/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes support for the following legacy virtualization hypervisors that were based on the VirtualPC tech that Microsoft bought from Connectix and then rebranded. It never worked on Windows 2008 / 7 or later. It's just dead tech that no one is using at this point. See for release details: https://en.wikipedia.org/wiki/Microsoft_Virtual_Server Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Bump version to 15.0.9 by Chef Expeditorv15.0.9Chef Expeditor2018-11-263-5/+6
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | | Merge pull request #1301 from chef/nuke_old_specsTim Smith2018-11-2619-2406/+0
|\ \ \ | |/ / |/| | Remove old spec files
| * | Remove old spec filesnuke_old_specsTim Smith2018-11-2419-2406/+0
| | | | | | | | | | | | | | | | | | These are unused and add 10k to the gem size. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Bump version to 15.0.8 by Chef Expeditorv15.0.8Chef Expeditor2018-11-263-5/+6
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | | Merge pull request #1303 from safematix/masterTim Smith2018-11-262-0/+24
|\ \ \ | | | | | | | | Plugin to load hyper_v hostname from guest
| * | | :art: :hammer: rename virtualization[:host] to virtualization[:hypervisor_host]Ressl Robert2018-11-252-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Ressl Robert <r.ressl@safematix.com>
| * | | :art: :pencil: change describe of test for Hyper-V guest and the hostname of ↵Ressl Robert2018-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | the host Signed-off-by: Ressl Robert <r.ressl@safematix.com>
| * | | Update lib/ohai/plugins/linux/virtualization.rbTim Smith2018-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | Co-Authored-By: safematix <r.ressl@safematix.com> Signed-off-by: Ressl Robert <r.ressl@safematix.com>
| * | | :art: :hammer: update chefstyle offensesRessl Robert2018-11-251-4/+4
| | | | | | | | | | | | | | | | Signed-off-by: Ressl Robert <r.ressl@safematix.com>
| * | | Merge branch 'master' of https://github.com/chef/ohaiRessl Robert2018-11-251-2/+9
| |\ \ \ | | |/ / | | | | | | | | Signed-off-by: Ressl Robert <r.ressl@safematix.com>
| * | | :umbrella: :pencil: add tests for function to load hyper_v hostname from guestRessl Robert2018-11-251-0/+13
| | | | | | | | | | | | | | | | Signed-off-by: Ressl Robert <r.ressl@safematix.com>
| * | | :sparkles: :pencil: add function to load hyper_v hostname from guestRessl Robert2018-11-251-0/+11
| | | | | | | | | | | | | | | | Signed-off-by: Ressl Robert <r.ressl@safematix.com>
* | | | Merge pull request #1304 from chef/xenialTim Smith2018-11-261-1/+1
|\ \ \ \ | |_|/ / |/| | | Test on Ubuntu Xenial in Travis
| * | | Test on Ubuntu Xenial in TravisxenialTim Smith2018-11-251-1/+1
|/ / / | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Revert "Remove unnecessary Ruby 2.4 FIPS detection"Tim Smith2018-11-241-2/+9
|/ / | | | | | | This reverts commit 6f02a8bd1bf955019a399797e5f016bcb390c116.
* | Revert "Remove the Ruby < 2.5 logic from the FIPS plugins"Tim Smith2018-11-243-20/+130
| | | | | | | | This reverts commit 63f35470d70930b3d98acb7058d4584178f98246.
* | Remove the Ruby < 2.5 logic from the FIPS pluginsTim Smith2018-11-243-130/+20
| | | | | | | | | | | | So much to delete here. Signed-off-by: Tim Smith <tsmith@chef.io>