mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +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__():
|
def __virtual__():
|
||||||
'''
|
'''
|
||||||
Load as 'pkg' on FreeBSD 10 and greater.
|
Load as 'pkg' on FreeBSD 10 and greater.
|
||||||
|
Load as 'pkg' on DragonFly BSD.
|
||||||
Load as 'pkg' on FreeBSD 9 when config option
|
Load as 'pkg' on FreeBSD 9 when config option
|
||||||
``providers:pkg`` is set to 'pkgng'.
|
``providers:pkg`` is set to 'pkgng'.
|
||||||
'''
|
'''
|
||||||
|
if __grains__['kernel'] == 'DragonFly':
|
||||||
|
return __virtualname__
|
||||||
if __grains__['os'] == 'FreeBSD' and float(__grains__['osrelease']) >= 10:
|
if __grains__['os'] == 'FreeBSD' and float(__grains__['osrelease']) >= 10:
|
||||||
return __virtualname__
|
return __virtualname__
|
||||||
if __grains__['os'] == 'FreeBSD' and \
|
if __grains__['os'] == 'FreeBSD' and \
|
||||||
|
Loading…
Reference in New Issue
Block a user