puppet-puppetdbquery icon indicating copy to clipboard operation
puppet-puppetdbquery copied to clipboard

Way to have query_facts return facts as hash

Open matthope opened this issue 9 years ago • 0 comments

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.

matthope avatar Aug 07 '16 23:08 matthope