mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add support for KVM in the Solaris virt detection
smbios -i 256 return: # smbios -i 256 ID SIZE TYPE 256 77 SMB_TYPE_SYSTEM (system information) Manufacturer: Red Hat Product: KVM Version: RHEL 6.4.0 PC UUID: 8a3b8b1a-ba59-1a4b-5f85-ab53a5a885a9 Wake-Up Event: 0x6 (power switch) SKU Number: Family: Red Hat Enterprise Linux
This commit is contained in:
parent
12354869b9
commit
bd6ac784bb
1 changed files with 3 additions and 0 deletions
|
@ -3511,6 +3511,9 @@ class SunOSVirtual(Virtual):
|
|||
elif 'HVM domU' in line:
|
||||
self.facts['virtualization_type'] = 'xen'
|
||||
self.facts['virtualization_role'] = 'guest'
|
||||
elif 'KVM' in line:
|
||||
self.facts['virtualization_type'] = 'kvm'
|
||||
self.facts['virtualization_role'] = 'guest'
|
||||
|
||||
class Ohai(Facts):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue