Jira (FACT-3142) Add support for Mariner to Facter

32 views
Skip to first unread message

Martin Minkus (Jira)

unread,
Aug 31, 2022, 6:48:04 PM8/31/22
to puppe...@googlegroups.com
Martin Minkus created an issue
 
Facter / New Feature FACT-3142
Add support for Mariner to Facter
Issue Type: New Feature New Feature
Assignee: Unassigned
Components: Facter 3, Facter 4
Created: 2022/08/31 3:47 PM
Priority: Normal Normal
Reporter: Martin Minkus

I have raised PR's to add support for Mariner (otherwise known as CBL-Mariner or Common Base Linux Mariner) to Facter 3.x and 4.x:
https://github.com/puppetlabs/facter/pull/2514
https://github.com/puppetlabs/facter/pull/2519

Some background:
We currently run puppet on some ~500k hosts which are a mix of RHEL/CentOS. We are looking at rolling out Mariner which is Microsoft's own cloud based distro. You can think of it as Microsoft's version of Amazon Linux or Oracle Linux.

root [ ~ ]# cat /etc/mariner-release
CBL-Mariner 2.0.20220804
MARINER_BUILD_NUMBER=4d0fac3
root [ ~ ]#

root [ ~ ]# cat /etc/os-release

NAME="Common Base Linux Mariner"
VERSION="2.0.20220804"
ID=mariner
VERSION_ID="2.0"
PRETTY_NAME="CBL-Mariner/Linux"
ANSI_COLOR="1;34"
HOME_URL="https://aka.ms/cbl-mariner"
BUG_REPORT_URL="https://aka.ms/cbl-mariner"
SUPPORT_URL="https://aka.ms/cbl-mariner"
root [ ~ ]#

 

root [ ~ ]# cat /etc/lsb-release
DISTRIB_ID="Mariner"
DISTRIB_RELEASE="2.0.20220804"
DISTRIB_CODENAME=Mariner
DISTRIB_DESCRIPTION="CBL-Mariner 2.0.20220804"
root [ ~ ]#

 
Facter 3.x, before:

root [ ~/facter/release ]# facter os
{
architecture => "x86_64",
family => "Linux",
hardware => "x86_64",
name => "Linux",
release =>

{ full => "5.10.104-linuxkit", major => "5", minor => "10" }

,
selinux =>

{ enabled => false }
}
root [ ~/facter/release ]#

 
 
After:


root [ ~/facter/release ]# bin/facter os
{
architecture => "x86_64",
family => "RedHat",
hardware => "x86_64",
name => "Mariner",
release => { full => "2.0.20220804", major => "2", minor => "0" },
selinux => { enabled => false }

}
root [ ~/facter/release ]#

 
Facter 4.x, before:

root [ ~ ]# facter os
{
architecture => "x86_64",
family => "Mariner",
hardware => "x86_64",
name => "Common",
release =>

{ full => "2.0", major => "2.0" }

,
selinux =>

{ enabled => false }
}
root [ ~ ]#

 
After:


root [ ~ ]# facter os
{
architecture => "x86_64",
family => "Redhat",
hardware => "x86_64",
name => "Mariner",
release => { full => "2.0.20220824", major => "2", minor => "0" },
selinux => { enabled => false }

}

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Martin Minkus (Jira)

unread,
Aug 31, 2022, 6:49:03 PM8/31/22
to puppe...@googlegroups.com
Martin Minkus updated an issue
Change By: Martin Minkus
I have raised PR's to add support for Mariner (otherwise known as CBL-Mariner or Common Base Linux Mariner) to Facter 3.x and 4.x:
https://github.com/puppetlabs/facter/pull/2514
https://github.com/puppetlabs/facter/pull/2519

Some background:
We currently run puppet on some ~500k hosts which are a mix of RHEL/CentOS. We are looking at rolling out Mariner which is Microsoft's own cloud based distro. You can think of it as Microsoft's version of Amazon Linux or Oracle Linux.

{code}

root [ ~ ]# cat /etc/mariner-release
CBL-Mariner 2.0.20220804
MARINER_BUILD_NUMBER=4d0fac3
root [ ~ ]#
{code}

{code}

root [ ~ ]# cat /etc/os-release
{code} NAME="Common Base Linux Mariner"

VERSION="2.0.20220804"
ID=mariner
VERSION_ID="2.0"
PRETTY_NAME="CBL-Mariner/Linux"
ANSI_COLOR="1;34"
HOME_URL="https://aka.ms/cbl-mariner"
BUG_REPORT_URL="https://aka.ms/cbl-mariner"
SUPPORT_URL="https://aka.ms/cbl-mariner"
root [ ~ ]#
{code}

{code}

root [ ~ ]# cat /etc/lsb-release
DISTRIB_ID="Mariner"
DISTRIB_RELEASE="2.0.20220804"
DISTRIB_CODENAME=Mariner
DISTRIB_DESCRIPTION="CBL-Mariner 2.0.20220804"
root [ ~ ]#
{code}

Facter 3.x, before:
{code}

root [ ~/facter/release ]# facter os
{
  architecture => "x86_64",
  family => "Linux",
  hardware => "x86_64",
  name => "Linux",
  release => {
    full => "5.10.104-linuxkit",
    major => "5",
    minor => "10"
  },
  selinux => {
    enabled => false
  }
}
root [ ~/facter/release ]#
{code}


After:
{code}

root [ ~/facter/release ]# bin/facter os
{
  architecture => "x86_64",
  family => "RedHat",
  hardware => "x86_64",
  name => "Mariner",
  release => {
    full => "2.0.20220804",
    major => "2",
    minor => "0"
  },
  selinux => {
    enabled => false
  }
}
root [ ~/facter/release ]#
{code}

Facter 4.x, before:
{code}

root [ ~ ]# facter os
{
  architecture => "x86_64",
  family => "Mariner",
  hardware => "x86_64",
  name => "Common",
  release => {
    full => "2.0",
    major => "2.0"
  },
  selinux => {
    enabled => false
  }
}
root [ ~ ]#
{code}

After:
{code}

root [ ~ ]# facter os
{
  architecture => "x86_64",
  family => "Redhat",
  hardware => "x86_64",
  name => "Mariner",
  release => {
    full => "2.0.20220824",
    major => "2",
    minor => "0"
  },
  selinux => {
    enabled => false
  }
}
{code}

Morgan Rhodes (Jira)

unread,
Sep 6, 2022, 4:28:03 PM9/6/22
to puppe...@googlegroups.com
Morgan Rhodes updated an issue
Change By: Morgan Rhodes
Labels: needs-validation

Morgan Rhodes (Jira)

unread,
Sep 7, 2022, 5:16:02 PM9/7/22
to puppe...@googlegroups.com
Morgan Rhodes updated an issue
Change By: Morgan Rhodes
Team: Phoenix

Josh Cooper (Jira)

unread,
Sep 22, 2022, 12:48:02 PM9/22/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Phoenix 2022-10-12

Morgan Rhodes (Jira)

unread,
Sep 22, 2022, 1:12:02 PM9/22/22
to puppe...@googlegroups.com
Morgan Rhodes updated an issue
Change By: Morgan Rhodes
Labels: needs-validation

Morgan Rhodes (Jira)

unread,
Sep 22, 2022, 1:14:02 PM9/22/22
to puppe...@googlegroups.com
Morgan Rhodes updated an issue
Change By: Morgan Rhodes
Story Points: 1

Josh Cooper (Jira)

unread,
Oct 5, 2022, 12:40:03 PM10/5/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Epic Link: PUP-11619

Josh Cooper (Jira)

unread,
Oct 12, 2022, 11:51:03 AM10/12/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes: Enhancement
Release Notes Summary: Facter now correctly reports on os related facts for Mariner, a free and open-source Linux distribution from Microsoft. This was a community contribution from https://github.com/mminkus

Claudia Petty (Jira)

unread,
Jun 21, 2023, 8:44:04 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
Change By: Claudia Petty
Labels: new-feature
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages