puppetlabs / facter

Collect and display system facts
https://puppet.com/open-source/#osp
Apache License 2.0
616 stars 494 forks source link

Add support for Microsoft Azure Linux to Facter 4.x #2723

Open mminkus opened 1 month ago

mminkus commented 1 month ago

Add support for Microsoft Azure Linux, previously known as CBL-Mariner, Microsoft's Linux distribution for cloud infrastructure and edge products and services.

Before:

# facter os
{
  architecture => "x86_64",
  family => "Linux",
  hardware => "x86_64",
  name => "Linux",
  release => {
    full => "6.6.22.1-2.azl3",
    major => "6",
    minor => "6"
  },
  selinux => {
    enabled => false
  }
}

After:

# facter os
{
  architecture => "x86_64",
  family => "Redhat",
  hardware => "x86_64",
  name => "AzureLinux",
  release => {
    full => "3.0.20240401",
    major => "3",
    minor => "0"
  },
  selinux => {
    enabled => false
  }
}

Fixes #2727

puppetlabs-jenkins commented 1 month ago

Can one of the admins verify this patch?