Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more distro_name() & distro_family() functionality #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mstewart
Copy link

@mstewart mstewart commented Aug 9, 2012

Hey, I've been using this module on a project of mine, and I've fleshed out a few more cases in distro_name() and distro_family(). I've also added a fallback in distro_family, for when you know you're on either debian or ubuntu, but can't tell which. Some test cases using mock are attached too.

* Use lsb_release if available on the remote system
* Add support for Amazon Linux detection
* Scan through /etc/redhat-release to check for centos/fedora
* Detect Debian/Ubuntu family based on /etc/debian_version,
as a fallback
* Add mocked-up unit tests for some of the distro detection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant