When running Facter the os* facts look like this:
os => {
|
architecture => "amd64",
|
distro => {
|
codename => "trusty",
|
description => "Ubuntu 14.04.2 LTS",
|
id => "Ubuntu",
|
release => {
|
full => "14.04",
|
major => "14.04"
|
}
|
},
|
family => "Debian",
|
hardware => "x86_64",
|
name => "Ubuntu",
|
release => {
|
full => "14.04",
|
major => "14.04"
|
},
|
selinux => {
|
enabled => false
|
}
|
}
|
This makes for writing annoying code, checking between os['family'] == 'Debian' instead of 'debian' etc.
The dmi facts have the same feature where we got 'Bochs' all over.
I realise that down casing facts by default will break a lot of things for people so this could perhaps be considered for a major release boundary but it would make for less crazy manifests in the end.
|