diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-12-21 12:56:49 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-12-21 12:56:49 -0800 |
commit | 05f1b0a776115b9e8e284125621d559e079d400a (patch) | |
tree | cf4c16a1e4c479b170fecd979a4ffb91c324d7b1 | |
parent | 434b28a16d81d3623d284476ba1b86fb19b6ee07 (diff) | |
download | ohai-05f1b0a776115b9e8e284125621d559e079d400a.tar.gz |
document where to put distros in families
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | lib/ohai/plugins/linux/platform.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ohai/plugins/linux/platform.rb b/lib/ohai/plugins/linux/platform.rb index f92749bc..55d939cf 100644 --- a/lib/ohai/plugins/linux/platform.rb +++ b/lib/ohai/plugins/linux/platform.rb @@ -119,14 +119,23 @@ Ohai.plugin(:Platform) do def determine_platform_family case platform when /debian/, /ubuntu/, /linuxmint/, /raspbian/, /cumulus/ + # apt-get+dpkg almost certainly goes here "debian" when /oracle/, /centos/, /redhat/, /scientific/, /enterpriseenterprise/, /xenserver/, /cloudlinux/, /ibm_powerkvm/, /parallels/, /nexus_centos/, /clearos/, /bigip/ # Note that 'enterpriseenterprise' is oracle's LSB "distributor ID" + # NOTE: "rhel" should be reserved exclusively for recompiled rhel versions that are nearly perfectly compatible down to the platform_version. + # The operating systems that are "rhel" should all be as compatible as rhel7 = centos7 = oracle7 = scientific7 (98%-ish core RPM version compatibility + # and the version numbers MUST track the upstream). The appropriate EPEL version repo should work nearly perfectly. Some variation like the + # oracle kernel version differences and tuning and extra packages are clearly acceptable. Almost certainly some distros above (xenserver?) + # should not be in this list. Please use fedora, below, instead. Also note that this is the only platform_family with this strict of a rule, + # see the example of the debian platform family for how the rest of the platform_family designations should be used. "rhel" when /amazon/ "amazon" when /suse/ "suse" when /fedora/, /pidora/, /arista_eos/ + # In the broadest sense: RPM-based, fedora-derived distributions which are not strictly re-compiled RHEL (if it uses RPMs, and smells more like redhat and less like + # SuSE it probably goes here). "fedora" when /nexus/, /ios_xr/ "wrlinux" |