Skip to content

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