Skip to content

Commit

Permalink
Merge pull request #30223 from serge-p/patch-11
Browse files Browse the repository at this point in the history
adding support for DragonFly BSD
  • Loading branch information
Mike Place committed Jan 13, 2016
2 parents 5a8da62 + ec798ac commit 7e89a46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salt/modules/pkgng.py
Expand Up @@ -51,9 +51,12 @@
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 \
Expand Down

0 comments on commit 7e89a46

Please sign in to comment.