|
|
|
@ -380,11 +380,19 @@ class CentOSLinuxHostname(Hostname):
|
|
|
|
|
class ScientificHostname(Hostname):
|
|
|
|
|
platform = 'Linux'
|
|
|
|
|
distribution = 'Scientific'
|
|
|
|
|
distribution_version = get_distribution_version()
|
|
|
|
|
if distribution_version and LooseVersion(distribution_version) >= LooseVersion("7"):
|
|
|
|
|
strategy_class = SystemdStrategy
|
|
|
|
|
else:
|
|
|
|
|
strategy_class = RedHatStrategy
|
|
|
|
|
|
|
|
|
|
class ScientificLinuxHostname(Hostname):
|
|
|
|
|
platform = 'Linux'
|
|
|
|
|
distribution = 'Scientific linux'
|
|
|
|
|
distribution_version = get_distribution_version()
|
|
|
|
|
if distribution_version and LooseVersion(distribution_version) >= LooseVersion("7"):
|
|
|
|
|
strategy_class = SystemdStrategy
|
|
|
|
|
else:
|
|
|
|
|
strategy_class = RedHatStrategy
|
|
|
|
|
|
|
|
|
|
class AmazonLinuxHostname(Hostname):
|
|
|
|
|