mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
adding support for DragonFly BSD
adding support for DragonFly BSD
This commit is contained in:
parent
ad7522c98d
commit
45206dfe3d
@ -51,9 +51,12 @@ __virtualname__ = 'pkg'
|
||||
def __virtual__():
|
||||
'''
|
||||
Load as 'pkg' on FreeBSD 10 and greater.
|
||||
Load as 'pkg' on DragonFly BSD.
|
||||
Load as 'pkg' on FreeBSD 9 when config option
|
||||
``providers:pkg`` is set to 'pkgng'.
|
||||
'''
|
||||
if __grains__['kernel'] == 'DragonFly':
|
||||
return __virtualname__
|
||||
if __grains__['os'] == 'FreeBSD' and float(__grains__['osrelease']) >= 10:
|
||||
return __virtualname__
|
||||
if __grains__['os'] == 'FreeBSD' and \
|
||||
|
Loading…
Reference in New Issue
Block a user