summaryrefslogtreecommitdiffstats
path: root/spec/unit/virtual.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'stschulte/feature/master/5040' into nextPaul Berry2010-11-091-0/+11
|\ | | | | | | | | | | Manually resolved conflicts: lib/facter/virtual.rb spec/unit/virtual.rb
| * (#5040) fact virtual should detect hpvmStefan Schulte2010-11-031-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+6
|\ \ | | | | | | | | | | | | | | | Manually resolved conflicts: lib/facter/virtual.rb spec/unit/virtual.rb
| * | (#5016) is_virtual should be true on solaris zonesStefan Schulte2010-11-031-0/+6
| |/ | | | | | | | | | | | | 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-6/+6
|/ | | | Fix is_virtual fact to return strings rather than bools.
* Fix #4352 - Support for detecting KVM virtuals on FreeBSDJiri Kubicek2010-07-261-0/+7
| | | | | | There was no support for detecting FreeBSD running in KVM as a virtual in facter. This patch detects KVM by getting "hw.model" kernel state via sysctl. Jails running in KVM are also correctly detected as "jail" not "kvm". Signed-off-by: Jiri Kubicek <jiri.kubicek@kraxnet.cz>
* Fix #4352 - Support for detecting virtuals (jails) on FreeBSDJiri Kubicek2010-07-261-0/+6
| | | | | | 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>
* Fix virtual unit test on non-linux by stubbing kernelPaul Nasrat2010-04-261-0/+1
| | | | Signed-off-by: Paul Nasrat <pnasrat@googlemail.com>
* Add kvm support to virtual factJohn Ferlito2010-03-081-0/+6
| | | | Based on initial patch by James Turnbull
* Fix broken solaris zone tests on EC2Paul Nasrat2009-09-091-0/+51
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