mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-04 16:21:28 -07:00
distribution: Add support for Cumulus Linux (#52309)
* Refactored code * Added support for Cumulus Linux 2.5.4 * Added support for Cumulus Linux 3.7.3 * Test added Fixes: #29969 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
677c04c01d
commit
db03f88b63
2 changed files with 71 additions and 24 deletions
|
@ -1110,7 +1110,53 @@ PRIVACY_POLICY_URL="http://www.intel.com/privacy"
|
|||
"os_family": "Archlinux",
|
||||
"distribution_version": "NA"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': "Cumulus Linux 3.7.3",
|
||||
'input': {
|
||||
'/etc/os-release': """NAME="Cumulus Linux"
|
||||
VERSION_ID=3.7.3
|
||||
VERSION="Cumulus Linux 3.7.3"
|
||||
PRETTY_NAME="Cumulus Linux"
|
||||
ID=cumulus-linux
|
||||
ID_LIKE=debian
|
||||
CPE_NAME=cpe:/o:cumulusnetworks:cumulus_linux:3.7.3
|
||||
HOME_URL="http://www.cumulusnetworks.com/"
|
||||
SUPPORT_URL="http://support.cumulusnetworks.com/"
|
||||
"""
|
||||
},
|
||||
'platform.dist': ('debian', '8.11', ''),
|
||||
'result': {
|
||||
'distribution': 'Cumulus Linux',
|
||||
'distribution_major_version': '3',
|
||||
'distribution_release': 'Cumulus Linux 3.7.3',
|
||||
'os_family': 'Debian',
|
||||
'distribution_version': '3.7.3',
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': "Cumulus Linux 2.5.4",
|
||||
'input': {
|
||||
'/etc/os-release': """NAME="Cumulus Linux"
|
||||
VERSION_ID=2.5.4
|
||||
VERSION="2.5.4-6dc6e80-201510091936-build"
|
||||
PRETTY_NAME="Cumulus Linux"
|
||||
ID=cumulus-linux
|
||||
ID_LIKE=debian
|
||||
CPE_NAME=cpe:/o:cumulusnetworks:cumulus_linux:2.5.4-6dc6e80-201510091936-build
|
||||
HOME_URL="http://www.cumulusnetworks.com/"
|
||||
SUPPORT_URL="http://support.cumulusnetworks.com/"
|
||||
"""
|
||||
},
|
||||
'platform.dist': ('', '', ''),
|
||||
'result': {
|
||||
'distribution': 'Cumulus Linux',
|
||||
'distribution_major_version': '2',
|
||||
'distribution_release': '2.5.4-6dc6e80-201510091936-build',
|
||||
'os_family': 'Debian',
|
||||
'distribution_version': '2.5.4',
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue