mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Arch has moved to systemd by default!!
This commit is contained in:
parent
dbe99bba6f
commit
8c01f7e566
@ -36,6 +36,7 @@ def __virtual__():
|
||||
'Gentoo',
|
||||
'Ubuntu',
|
||||
'Debian',
|
||||
'Arch',
|
||||
]
|
||||
if __grains__['os'] in disable:
|
||||
return False
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user