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.
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