Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-2943

Fix os.name detection of AlmaLinux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: FACT 3.y
    • Fix Version/s: FACT 3.14.17
    • Component/s: None
    • Environment:
    • Template:
    • Acceptance Criteria:
      Hide

      "os.name" should report "AlmaLinux" instead of "RedHat":

      $ facter os
      {
        architecture => "x86_64",
        distro => {
          codename => "PurpleManul",
          description => "AlmaLinux release 8.3 Beta (Purple Manul)",
          id => "AlmaLinux",
          release => {
            full => "8.3",
            major => "8",
            minor => "3"
          },
          specification => ":core-4.1-amd64:core-4.1-noarch"
        },
        family => "RedHat",
        hardware => "x86_64",
        name => "AlmaLinux",
        release => {
          full => "8.3",
          major => "8",
          minor => "3"
        },
        selinux => {
          enabled => false
        }
      }
      

       

      Show
      " os.name " should report " AlmaLinux " instead of " RedHat ": $ facter os { architecture => "x86_64", distro => { codename => "PurpleManul", description => "AlmaLinux release 8.3 Beta (Purple Manul)", id => "AlmaLinux", release => { full => "8.3", major => "8", minor => "3" }, specification => ":core-4.1-amd64:core-4.1-noarch" }, family => "RedHat", hardware => "x86_64", name => "AlmaLinux", release => { full => "8.3", major => "8", minor => "3" }, selinux => { enabled => false } }  
    • Team:
      Night's Watch
    • Sprint:
      NW - 2021-03-17
    • Method Found:
      Needs Assessment
    • Zendesk Ticket IDs:
      44058
    • Zendesk Ticket Count:
      1
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Facter 3 can now detect AlmaLinux. Contributed by cschug
    • QA Risk Assessment:
      Needs Assessment

      Description

      AlmaLinux is an upcoming Linux distribution currently in public Beta, released on 2021-02-01. It aims to be a 1:1 compatible clone of Red Hat Enterprise Linux filling the gap of the CentOS Linux, which has been EoL'ed as downstream product.

      Right now as of Facter 3.14.15, AlmaLinux is correctly detected as member of the Red Hat-family ("os.family" resolves to "RedHat") but the os.name fact on AlmaLinux incorrectly resolves to "RedHat" instead of "AlmaLinux":

      $ facter os
      {
        architecture => "x86_64",
        distro => {
          codename => "PurpleManul",
          description => "AlmaLinux release 8.3 Beta (Purple Manul)",
          id => "AlmaLinux",
          release => {
            full => "8.3",
            major => "8",
            minor => "3"
          },
          specification => ":core-4.1-amd64:core-4.1-noarch"
        },
        family => "RedHat",
        hardware => "x86_64",
        name => "RedHat",
        release => {
          full => "8.3",
          major => "8",
          minor => "3"
        },
        selinux => {
          enabled => false
        }
      }
      

      As AlmaLinux 8.3 Beta just being out for a few days with the final release being expected later in 2021 Q1, the effect of this change should be little and not introduce any backward-incompatible changes (AlmaLinux 8.3 will be the first release of AlmaLinux, there are no predecessors).

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            cschug Christoph Schug
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support