modules: service: support Systemd on Cumulus Linux

Cumulus Linux is Debian-based and uses Systemd as its init system.

This commit prevents the minion from trying to use SysVinit on Cumulus Linux
and failing with `ERROR: Unable to run command [...] No such file or
directory`.
This commit is contained in:
Benoît Knecht 2017-04-24 22:13:00 +02:00
parent dac9e7c7f2
commit a492bd4ac2

View File

@ -45,7 +45,8 @@ def __virtual__():
'Void',
'Mint',
'Raspbian',
'XenServer'
'XenServer',
'Cumulus'
))
if __grains__.get('os', '') in disable:
return (False, 'Your OS is on the disabled list')