Merge pull request #5528 from dverhelst/devel

Adding support for detecting RHEV Hypervisor in ansible_virtualization_type
reviewable/pr18780/r1
Michael DeHaan 11 years ago committed by James Tanner
parent 51fc8ef0a0
commit 0fdcb8ea69

@ -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…
Cancel
Save