Adding support for XCP-ng

This commit is contained in:
Nicolas Lafont 2018-10-20 02:06:04 +02:00 committed by rallytime
parent c516bc5199
commit 9092c4e1ee
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -57,6 +57,7 @@ def __virtual__():
# Enable on these platforms only.
enable = set((
'XenServer',
'XCP-ng',
'RedHat',
'CentOS',
'ScientificLinux',
@ -88,6 +89,15 @@ def __virtual__():
'as virtual \'service\''
)
return __virtualname__
if __grains__['os'] == 'XCP-ng':
if osrelease_major >= 7:
return (
False,
'XCP-ng >= 7 uses systemd, will not load rh_service.py '
'as virtual \'service\''
)
return __virtualname__
if __grains__['os'] == 'Fedora':
if osrelease_major >= 15: