1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

add SLE12 support to hostname.py

This commit is contained in:
Vladislav Lewin 2015-05-22 13:26:25 +02:00 committed by Matt Clay
parent de813195c5
commit 36ce019beb

View file

@ -368,6 +368,15 @@ class FedoraHostname(Hostname):
distribution = 'Fedora'
strategy_class = SystemdStrategy
class SLESHostname(Hostname):
platform = 'Linux'
distribution = 'Suse linux enterprise server '
distribution_version = get_distribution_version()
if distribution_version and LooseVersion(distribution_version) >= LooseVersion("12"):
strategy_class = SystemdStrategy
else:
strategy_class = UnimplementedStrategy
class OpenSUSEHostname(Hostname):
platform = 'Linux'
distribution = 'Opensuse '