mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add FreeBSD detection for VirtualBox
This commit is contained in:
parent
e07e3f257b
commit
e5322d2c44
1 changed files with 2 additions and 0 deletions
|
@ -705,6 +705,8 @@ def _virtual(osdata):
|
|||
maker = __salt__['cmd.run']('{0} smbios.system.maker'.format(kenv))
|
||||
if product.startswith('VMware'):
|
||||
grains['virtual'] = 'VMware'
|
||||
if product.startswith('VirtualBox'):
|
||||
grains['virtual'] = 'VirtualBox'
|
||||
if maker.startswith('Xen'):
|
||||
grains['virtual_subtype'] = '{0} {1}'.format(maker, product)
|
||||
grains['virtual'] = 'xen'
|
||||
|
|
Loading…
Add table
Reference in a new issue