Update hostname.py
Added support for Oracle Linux. (http://www.oracle.com/linux)
This commit is contained in:
parent
1ca4543e48
commit
32a21a9b61
1 changed files with 9 additions and 0 deletions
|
@ -481,6 +481,15 @@ class ScientificLinuxHostname(Hostname):
|
|||
else:
|
||||
strategy_class = RedHatStrategy
|
||||
|
||||
class OracleLinuxHostname(Hostname):
|
||||
platform = 'Linux'
|
||||
distribution = 'Oracle linux server'
|
||||
distribution_version = get_distribution_version()
|
||||
if distribution_version and LooseVersion(distribution_version) >= LooseVersion("7"):
|
||||
strategy_class = SystemdStrategy
|
||||
else:
|
||||
strategy_class = RedHatStrategy
|
||||
|
||||
class AmazonLinuxHostname(Hostname):
|
||||
platform = 'Linux'
|
||||
distribution = 'Amazon'
|
||||
|
|
Loading…
Reference in a new issue