diff options
author | Brian Coca <bcoca@ansible.com> | 2015-05-26 10:08:52 -0400 |
---|---|---|
committer | Brian Coca <bcoca@ansible.com> | 2015-05-26 10:08:52 -0400 |
commit | 1736c8dfea5ce868ad1731c08590165aa0e55601 (patch) | |
tree | cb5eb51e41d9b8974e384ae5b457e70329f6ebc7 | |
parent | d74187438fd41e71f825eaab752209a33c6f5ab0 (diff) | |
parent | 771b369005ff1a7d9f6fab7cb6892e09cf087931 (diff) | |
download | ansible-modules-core-1736c8dfea5ce868ad1731c08590165aa0e55601.tar.gz |
Merge pull request #1399 from SUSE/devel
Add SLE12 support to hostname.py
-rw-r--r-- | system/hostname.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/system/hostname.py b/system/hostname.py index 1fe16e50..b90b0441 100644 --- a/system/hostname.py +++ b/system/hostname.py @@ -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 ' |