mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Merge pull request #30223 from serge-p/patch-11
adding support for DragonFly BSD
This commit is contained in:
commit
7e89a460e4
@ -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