puppet-puppetdbquery
puppet-puppetdbquery copied to clipboard
Way to have query_facts return facts as hash
It would be useful if there was a way to have data returned from query_facts such as (reusing the same example):
{
"foo.example.com": {
"facts" => {
"ipaddress": "192.168.0.2",
"osfamily": "Redhat"
}
},
"bar.example.com": {
"facts" => {
"ipaddress": "192.168.0.3",
"osfamily": "Debian"
}
}
}
This would make it easier to combine this with (for example) ensure_resources.