summaryrefslogtreecommitdiffstats
path: root/lib/facter/virtual.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'adrien/tickets/next/6719' into nextJames Turnbull2011-04-061-1/+1
|\ | | | | | | | | | | | | | | * adrien/tickets/next/6719: (#6719) Corrected faulty logic in bugfix Conflicts: lib/facter/virtual.rb
| * (#6719) Corrected faulty logic in bugfixAdrien Thebo2011-04-011-1/+1
| |
* | (#2714) Added timeout to prtdiag resulutionAdrien Thebo2011-04-011-2/+5
| | | | | | | | | | - prtdiag would hang in specific cases, subsequently hanging facter. This should kill prtdiag if it takes excessively long.
* | (#3856) Add virtualbox detection via lspci (graphics card), dmidecode, and ↵Michael Kincaid2011-04-011-0/+5
| | | | | | | | prtdiag for Solaris and corresponding tests. Darwin case is not handled yet.
* | (#5394) Document each Facter fact.Ben H2011-03-311-0/+38
| | | | | | | | | | | | | | | | | | Document all the builtin Facter facts in puppetdoc/rdoc format. This is laying the ground work for using a tool like puppet doc, or puppet describe but for facter, so you can see what a fact is for and how it resolves this. This is the "leg work" of documenting the actual facts, and the syntax of them may change in future.
* | Fixed #6616 - Spec test failure for vmwareJames Turnbull2011-03-171-1/+1
|\ \
| * | Fixed #6616 - Stubbing in VMware tests on LinuxJames Turnbull2011-03-151-1/+1
| | |
* | | Fixed #6719 TypoJames Turnbull2011-03-171-1/+1
| |/ |/|
* | (#6719) Restricts virtualization types for zonesAdrien Thebo2011-03-151-1/+3
| | | | | | | | | | - The virtual fact will only check if a system is a zone if the operating system is solaris.
* | Fixed #5699 - Added virtual support for s390x/ZlinuxJames Turnbull2011-03-071-0/+4
|/ | | | Patch modified from Hector Rivas
* Fix #4755: add support for GNU/kFreeBSD platform where missing.Marc Fournier2011-01-311-3/+3
| | | | | | | | | Merged manually to the current state of the art. Minimal conflicts resolved by adding both Darwin and GNU/KFreeBSD to the confine lines. Author: Marc Fournier <marc.fournier@camptocamp.com> Signed-off-by: Daniel Pittman <daniel@puppetlabs.com> Signed-off-by: Rick Bradley <rick@rickbradley.com>
* (#4754) Change is_virtual logic to not enumerate virtual typesMatt Robinson2010-11-301-2/+1
| | | | | | | | While looking at the patch for adding parallels to the virtual types David Schmitt noticed that it might be easier just to list the types that are NOT virtual since there's fewer of them. Paired-with: Nick Lewis
* (#4754) Add support for Darwin and Parallels VM to "virtual" factDonavan Miller2010-11-301-6/+29
| | | | | | | | | | | | | Adds support for Parallels VM guest detection with existing operating systems. Detects Parallels based on hardware vendor name and pci id. The Parallels vendor id does not seem to be listed in most pci.ids. Adds resolution for "virtual" fact in the Darwin kernel. This uses the existing Facter::Util::Macosx module to resolve system profiler data. Both vendor name and vendor id values are checked. Resolution appears to vary based on VM Host product. Signed-off-by: donavanm <donavan@desinc.net>
* Merge remote branch 'stschulte/feature/master/5040' into nextPaul Berry2010-11-091-3/+7
|\ | | | | | | | | | | Manually resolved conflicts: lib/facter/virtual.rb spec/unit/virtual.rb
| * (#5040) fact virtual should detect hpvmStefan Schulte2010-11-031-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With HP-UX you can build virtual machines that are often refered to as HP-VMs. This patch detecs HP-VMs by introducing a new function hpvm? that will check the output of /usr/bin/getconf MACHINE_MODEL. This should not depend on any tools that might be not installed. If inside a HP-VM the command will say something like ia64 hp server Integrity Virtual Machine while on real hardware the output could be ia64 hp server rx660 so searching for "Virtual Machine" should work. Currently it only works if the guest is also running HP-UX. (I guess this is the most common usecase).
* | Merge remote branch 'stschulte/ticket/master/5016' into nextPaul Berry2010-11-091-1/+1
|\ \ | | | | | | | | | | | | | | | Manually resolved conflicts: lib/facter/virtual.rb spec/unit/virtual.rb
| * | (#5016) is_virtual should be true on solaris zonesStefan Schulte2010-11-031-1/+1
| |/ | | | | | | | | | | | | While the fact virtual recognised solaris zones before, the is_virtual fact did not. With this patch applied is_virtual returns true on (non-global) zones
* / Issue #4889 Fact values should all be stringsPaul Nasrat2010-10-071-2/+2
|/ | | | Fix is_virtual fact to return strings rather than bools.
* Fix #4352 - Support for detecting virtuals (jails) on FreeBSDJiri Kubicek2010-07-261-1/+5
| | | | | | There was no support for detecting FreeBSD jails as a virtual in facter. This patch detects jail by getting "security.jail.jailed" kernel state via sysctl. Signed-off-by: Jiri Kubicek <jiri.kubicek@kraxnet.cz>
* Fixed #2355 read hang on /proc/xen/capabilties on RHEL 4.7Bernhard Furtmueller2010-05-271-2/+2
|
* Fixes #3397 - is_virtual fact does not detect Linux-VServerJames Turnbull2010-04-121-1/+1
| | | | Thanks to Benedikt Bohm for the fix.
* Add kvm support to virtual factJohn Ferlito2010-03-081-1/+5
| | | | Based on initial patch by James Turnbull
* Fix broken solaris zone tests on EC2Paul Nasrat2009-09-091-20/+19
| | | | | | | | | This cleans up xen and vserver detection to enable us to stub out so when we happen to be running tests on xen we don't report as that. More cleanup is needed in this area but this should give us a green build. This renames the tests to be consistent with current naming convention
* Issue #2292 Add tests for virtual factsPaul Nasrat2009-07-161-24/+11
| | | | Add tests and utility for virtual fact detection
* Fixes #2307 - Minor fix for zone in virtual.rbJames Turnbull2009-06-041-1/+1
|
* Fix #2278 Revert fix for 2120Paul Nasrat2009-05-221-17/+11
| | | | | | | | | Facter #2120 - Solaris support for Facter[virtual] This reverts commit 56760d34f070db4d7bb8e5fcfb7939fe3074bf49. This patch is broken as $? global will report last run process in the case of no vmware-checkvm binary
* Facter #2120 - Solaris support for Facter[virtual]Jim Pirzyk2009-05-151-11/+17
| | | | | | | | Initial support for virtual vmware fact on Solaris Tested on VMWare Fusion and OpenSolaris Paul
* Refactor #2154 - Modified patch from Benedikt Bohm to simplify openvz and ↵James Turnbull2009-05-131-17/+13
| | | | vserver detection
* Fixed #2119 - Added support for non-global Solaris 10 zonesJames Turnbull2009-05-101-0/+7
|
* Fixes #2169 Correctly recognises dom0 and domUsJames Turnbull2009-05-101-10/+14
|
* Partial fix for #2191 - Facter compatibility for Ruby 1.9James Turnbull2009-04-271-4/+4
|
* Use resultion.exec util instead of which checksPeter Meier2009-03-171-12/+8
| | | | Use rather our util to exec commands than implementing our own hack.
* Fixed #2044 - virtual fact thread fixJames Turnbull2009-03-071-7/+11
|
* Fix virtual fact if xen but /proc/virtual presentduritong2009-03-011-1/+1
| | | | | | | I found a xenu system where /proc/virtual was present, so facter always reported it as vserver_host. This fix will set facter only to vserver_host if the box is still seen as physical, hence no other virtual technology have been detected.
* Fixed #2003 - Added is_virtual factJames Turnbull2009-03-011-0/+13
|
* Fixing indentation everywhereLuke Kanies2009-01-151-67/+66
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixed #1791 - support for virtual fact on Solaris 10James Turnbull2008-12-221-9/+17
|
* Removed ENV path setting from virtual.rbJames Turnbull2008-10-211-2/+0
|
* Fixed #1634 - Update virtual fact to differentiate OpenVZ hardware nodes and ↵James Turnbull2008-10-211-1/+9
| | | | virtual environments
* Fixes #1558 - Adjusted virtual fact to allow non-root users to execute itJames Turnbull2008-09-081-1/+1
|
* Fixed #1558 - Updated virtual fact for xenu and xen0James Turnbull2008-09-051-3/+3
|
* Fixed #1490 - Added virtual factJames Turnbull2008-08-041-0/+62