lib/ohai/plugins/linux/platform.rb
#
# Determines the platform_family based on the platform
#
# @returns [String] platform_family value
#
Determines the platform_family based on the platform
Determines the platform_family based on the platform
def determine_platform_family
    case platform
    when /debian/, /ubuntu/, /linuxmint/, /raspbian/, /cumulus/
      "debian"
    when /oracle/, /centos/, /redhat/, /scientific/, /enterpriseenterprise/, /amazon/, /xenserver/, /cloudlinux/, /ibm_powerkvm/, /parallels/, /nexus_centos/ 
      "rhel"
    when /suse/
      "suse"
    when /fedora/, /pidora/, /arista_eos/
      "fedora"
    when /nexus/, /ios_xr/
      "wrlinux"
    when /gentoo/
      "gentoo"
    when /slackware/
      "slackware"
    when /arch/
      "arch"
    when /exherbo/
      "exherbo"
    when /alpine/
      "alpine"
    end
  end
def determine_platform_family case platform when / debian / , / ubuntu / , / linuxmint / , / raspbian / , / cumulus / "debian" when / oracle / , / centos / , / redhat / , / scientific / , / enterpriseenterprise / , / amazon / , / xenserver / , / cloudlinux / , / ibm_powerkvm / , / parallels / , / nexus_centos / "rhel" when / suse / "suse" when / fedora / , / pidora / , / arista_eos / "fedora" when / nexus / , / ios_xr / "wrlinux" when / gentoo / "gentoo" when / slackware / "slackware" when / arch / "arch" when / exherbo / "exherbo" when / alpine / "alpine" end end
Determines the platform_family based on the platform
Determines the platform_family based on the platform
# Note that 'enterpriseenterprise' is oracle's LSB "distributor ID"
[String] platform_family value
[ String ] platform_family value