Merge pull request #5528 from dverhelst/devel

Adding support for detecting RHEV Hypervisor in ansible_virtualization_type
This commit is contained in:
Michael DeHaan 2014-01-07 06:01:47 -08:00 committed by James Tanner
parent 51fc8ef0a0
commit 0fdcb8ea69

View file

@ -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'