Evilham
cf44c4a01b
By abstracting away vendor-dependent pattern matching for the linux code, we can re-use that and be reasonably sure about OpenBSD machines being virtualised when we can identify the undelrying virtualisation technology. It remains to be solved how to tell if an OpenBSD machine is physical; in that case previous cdist behaviour ("unknown") remains. For NetBSD something similar to OpenBSD could be done, with different sysctls: hw.machine and hw.model wary of adding those without testing though, so for NetBSD previous cdist behaviour ("unknown") remains. https://netbsd.gw.com/cgi-bin/man-cgi?sysctl+7.i386+NetBSD-9.0 |
||
---|---|---|
.. | ||
cpu_cores | ||
cpu_sockets | ||
disks | ||
hostname | ||
init | ||
interfaces | ||
is-freebsd-jail | ||
kernel_name | ||
lsb_codename | ||
lsb_description | ||
lsb_id | ||
lsb_release | ||
machine | ||
machine_type | ||
memory | ||
os | ||
os_release | ||
os_version | ||
runlevel |