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 OmniOS (OpenSolaris derivative) #2691

Open ptrrkssn opened 3 months ago

ptrrkssn commented 3 months ago

A couple of small fixes that enables "facter os" to give relevant info in the release hash instead of null, null, null (so other facts won't fail) and gives the OS name as "OmniOS" instead of "Solaris"..

Before:

facter os

{ architecture => "i86pc", family => "Solaris", hardware => "i86pc", name => "Solaris", release => { full => null, major => null, minor => null } }

After:

facter os

{ architecture => "i86pc", family => "Solaris", hardware => "i86pc", name => "OmniOS", release => { full => "11.r151048", major => "11", minor => "r151048" } }

cat /etc/release

OmniOS v11 r151048m Copyright (c) 2012-2017 OmniTI Computer Consulting, Inc. Copyright (c) 2017-2024 OmniOS Community Edition (OmniOSce) Association. All rights reserved. Use is subject to licence terms.

uname -a

SunOS servername 5.11 omnios-r151048-4a265be889 i86pc i386 i86pc

puppetlabs-jenkins commented 3 months ago

Can one of the admins verify this patch?

CLAassistant commented 3 months ago

CLA assistant check
All committers have signed the CLA.