From dcb06ab78f563fc86d8400030ed92dcdd5aa91b3 Mon Sep 17 00:00:00 2001 From: Eric Pulvino Date: Fri, 7 Jun 2019 15:40:20 -0400 Subject: [PATCH] Fix lack of support for Cumulus Linux with Hostname module in Ansible v2.8.0. (#57493) (cherry picked from commit 1661c87bae381f5842f3bf3e70334801a2e3b3b5) --- changelogs/fragments/hostname_cumulus_linux_support.yaml | 2 ++ lib/ansible/modules/system/hostname.py | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 changelogs/fragments/hostname_cumulus_linux_support.yaml diff --git a/changelogs/fragments/hostname_cumulus_linux_support.yaml b/changelogs/fragments/hostname_cumulus_linux_support.yaml new file mode 100644 index 0000000000..e91cf5f8c3 --- /dev/null +++ b/changelogs/fragments/hostname_cumulus_linux_support.yaml @@ -0,0 +1,2 @@ +bugfixes: + - hostname - Readded support for Cumulus Linux which broke in v2.8.0 (https://github.com/ansible/ansible/pull/57493) diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py index 9a92bfd730..ecc29f37b6 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -637,6 +637,12 @@ class DebianHostname(Hostname): strategy_class = DebianStrategy +class CumulusHostname(Hostname): + platform = 'Linux' + distribution = 'Cumulus-linux' + strategy_class = DebianStrategy + + class KaliHostname(Hostname): platform = 'Linux' distribution = 'Kali'