Arch has moved to systemd by default!!

This commit is contained in:
Thomas S Hatch 2012-10-24 10:58:41 -06:00
parent dbe99bba6f
commit 8c01f7e566
2 changed files with 6 additions and 1 deletions

View File

@ -36,6 +36,7 @@ def __virtual__():
'Gentoo',
'Ubuntu',
'Debian',
'Arch',
]
if __grains__['os'] in disable:
return False

View File

@ -14,9 +14,13 @@ def __virtual__():
'''
Only work on systems which default to systemd
'''
enable = (
'Arch',
'openSUSE',
)
if __grains__['os'] == 'Fedora' and __grains__['osrelease'] > 15:
return 'service'
elif __grains__['os'] == 'openSUSE':
elif __grains__['os'] in enable:
return 'service'
return False