distro: Add support for Pardus distribution (#71663)

Fixes: #71636

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/71767/head
Abhijeet Kasurde 4 years ago committed by GitHub
parent fc08c1f3c5
commit 173091e2e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- distribution - add support for Pardus Linux distribution (https://github.com/ansible/ansible/issues/71636).

@ -491,7 +491,7 @@ class Distribution(object):
'EulerOS', 'openEuler'], 'EulerOS', 'openEuler'],
'Debian': ['Debian', 'Ubuntu', 'Raspbian', 'Neon', 'KDE neon', 'Debian': ['Debian', 'Ubuntu', 'Raspbian', 'Neon', 'KDE neon',
'Linux Mint', 'SteamOS', 'Devuan', 'Kali', 'Cumulus Linux', 'Linux Mint', 'SteamOS', 'Devuan', 'Kali', 'Cumulus Linux',
'Pop!_OS', 'Parrot'], 'Pop!_OS', 'Parrot', 'Pardus GNU/Linux'],
'Suse': ['SuSE', 'SLES', 'SLED', 'openSUSE', 'openSUSE Tumbleweed', 'Suse': ['SuSE', 'SLES', 'SLED', 'openSUSE', 'openSUSE Tumbleweed',
'SLES_SAP', 'SUSE_LINUX', 'openSUSE Leap'], 'SLES_SAP', 'SUSE_LINUX', 'openSUSE Leap'],
'Archlinux': ['Archlinux', 'Antergos', 'Manjaro'], 'Archlinux': ['Archlinux', 'Antergos', 'Manjaro'],

@ -826,6 +826,12 @@ class OsmcHostname(Hostname):
strategy_class = SystemdStrategy strategy_class = SystemdStrategy
class PardusHostname(Hostname):
platform = 'Linux'
distribution = 'Pardus'
strategy_class = SystemdStrategy
class VoidLinuxHostname(Hostname): class VoidLinuxHostname(Hostname):
platform = 'Linux' platform = 'Linux'
distribution = 'Void' distribution = 'Void'

@ -0,0 +1,41 @@
{
"name": "Pardus GNU/Linux 19.1",
"distro": {
"codename": "ondokuz",
"id": "pradus",
"name": "Pardus GNU/Linux",
"version": "19.1",
"version_best": "19.1",
"lsb_release_info": {
"release": "19.1",
"codename": "ondokuz",
"distributor_id": "Pardus",
"description": "Pardus GNU/Linux Ondokuz"
},
"os_release_info": {
"pardus_codename": "ondokuz",
"name": "Pardus GNU/Linux",
"version_codename": "ondokuz",
"id_like": "debian",
"version_id": "19.1",
"bug_report_url": "https://talep.pardus.org.tr/",
"pretty_name": "Pardus GNU/Linux Ondokuz",
"version": "19.1 (Ondokuz)",
"codename": "ondokuz",
"home_url": "https://www.pardus.org.tr/",
"id": "pardus",
"support_url": "https://forum.pardus.org.tr/"
}
},
"input": {
"/etc/os-release": "NAME=\"Pardus GNU/Linux\"\nVERSION=\"19.1 (Ondokuz)\"\nID=pardus\nID_LIKE=debian\nPRETTY_NAME=\"Pardus GNU/Linux Ondokuz\"\nVERSION_ID=\"19.1\"\nHOME_URL=\"https://www.pardus.org.tr/\"\nSUPPORT_URL=\"https://forum.pardus.org.tr/\"\nBUG_REPORT_URL=\"https://talep.pardus.org.tr/\"\nVERSION_CODENAME=ondokuz\nPARDUS_CODENAME=ondokuz"
},
"platform.dist": ["debian", "10.0", ""],
"result": {
"distribution": "Pardus GNU/Linux",
"distribution_version": "19.1",
"distribution_release": "ondokuz",
"distribution_major_version": "19",
"os_family": "Debian"
}
}
Loading…
Cancel
Save