|
If I want to find facts that have a subkey in them somewhere (like "version" or "release" or "address"), I cannot use a utility like grep easily because of structured facts' multiline output format.
So instead of this:
# facter os
|
{
|
architecture => "x86_64",
|
family => "RedHat",
|
hardware => "x86_64",
|
name => "CentOS",
|
release => {
|
full => "6.6",
|
major => "6",
|
minor => "6"
|
},
|
selinux => {
|
enabled => false
|
}
|
}
|
I'd like something like this:
# facter --flat os
|
os.architecure => "x86_64"
|
os.family => "RedHat"
|
os.hardware => "x86_64"
|
os.name => "CentOS"
|
os.release.full => "6.6"
|
os.release.major => "6"
|
os.release.minor => "6"
|
os.selinux.enabled => "false"
|
Less lines of output and I can use grep!
|