mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Adding support for XCP-ng
This commit is contained in:
parent
c516bc5199
commit
9092c4e1ee
1 changed files with 10 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue