-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#8210) Add a heavy virtual fact using virt-what
Without this patch facter does not return kvm when running inside of an enterprise linux guest VM hosted on an enterprise linux kvm host. This is a problem because facter improperly reports the virtual machine is actually running on physical hardware, which is not true. This causes downstream problems for anyone relying on the virtual fact being accurate. This patch fixes the problem by adding a new resolver for the virtual fact that has a very high weight. The new resolver calls `virt-what`, available on Enterprise Linux machines by installing the `virt-what` package. The last line of output is used to determine the virtual machine hypervisor type. If virt-what is not available or returns no output, then existing lower weight resolvers are used instead.
- Loading branch information
Jeff McCune
committed
Oct 19, 2012
1 parent
2ed2575
commit cf43fc0
Showing
3 changed files
with
85 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters