If an Ubuntu target system does not contain the lsb_release executable the OS facts for a 16.04 machine will be reported as Debain stretch/sid (from /etc/debian_release). The base Ubuntu {16,18}.04 docker images do not ship with the lsb_release executable but contain the relevant details in /etc/os-release.
root@10ac92eea320:/puppetlabs_c/facter/debug# ./bin/facter os
|
{
|
architecture => "amd64",
|
family => "Debian",
|
hardware => "x86_64",
|
name => "Debian",
|
release => {
|
full => "stretch/sid",
|
major => "stretch/sid"
|
},
|
selinux => {
|
enabled => false
|
}
|
}
|
root@10ac92eea320:/puppetlabs_c/facter/debug# cat /etc/os-release
|
NAME="Ubuntu"
|
VERSION="16.04.4 LTS (Xenial Xerus)"
|
ID=ubuntu
|
ID_LIKE=debian
|
PRETTY_NAME="Ubuntu 16.04.4 LTS"
|
VERSION_ID="16.04"
|
HOME_URL="http://www.ubuntu.com/"
|
SUPPORT_URL="http://help.ubuntu.com/"
|
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
|
VERSION_CODENAME=xenial
|
UBUNTU_CODENAME=xenial
|