The Problem Given the following facts
Given the following facts: |
|
cat /opt/puppetlabs/facter/facts.d/foo.bar.txt |
foo.bar=true |
cat /opt/puppetlabs/facter/facts.d/c.d.json |
{ |
"c.d": |
{ |
"foo": 4 |
} |
} |
cat /opt/puppetlabs/facter/facts.d/bar.json |
{ |
"bar": |
{ |
"e.f": 5 |
} |
} |
cat /opt/puppetlabs/facter/facts.d/a.b.txt |
a.b=3
|
you'll get output from `puppet facts diff` like this:
[root@master20198-latest-centos ~]# puppet facts diff | python -m json.tool |
{ |
"a.b": { |
"new_value": null, |
"old_value": "3" |
}, |
"c.d.foo": { |
"new_value": null, |
"old_value": 4 |
}, |
"foo.bar": { |
"new_value": null, |
"old_value": "true" |
}, |
... |
}
|
which does not show that there are new facts "a", "c" and "foo" in Facter 4. Suggested Solution ideally we show these new facts with the new_value set and the old_value as null. |