Merge pull request #5528 from dverhelst/devel
Adding support for detecting RHEV Hypervisor in ansible_virtualization_type
This commit is contained in:
parent
659cb3118f
commit
1e6926b9ab
1 changed files with 5 additions and 0 deletions
|
@ -2080,6 +2080,11 @@ class LinuxVirtual(Virtual):
|
||||||
self.facts['virtualization_role'] = 'guest'
|
self.facts['virtualization_role'] = 'guest'
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if product_name == 'RHEV Hypervisor':
|
||||||
|
self.facts['virtualization_type'] = 'RHEV'
|
||||||
|
self.facts['virtualization_role'] = 'guest'
|
||||||
|
return
|
||||||
|
|
||||||
if product_name == 'VMware Virtual Platform':
|
if product_name == 'VMware Virtual Platform':
|
||||||
self.facts['virtualization_type'] = 'VMware'
|
self.facts['virtualization_type'] = 'VMware'
|
||||||
self.facts['virtualization_role'] = 'guest'
|
self.facts['virtualization_role'] = 'guest'
|
||||||
|
|
Loading…
Reference in a new issue