On Tuesday, 20 January 2015 20:00:14 UTC, JonY wrote:
I'm hoping to use this library (or something similar) to request a single fact from all nodes. The equiv curl request would be 'curl -X GET http://host:8080/v3/facts --data-urlencode 'query=["=","name","fs_space"]'.I've been looking at the docs on 'https://github.com/puppetlabs/puppetdb-ruby' but I can't seem to get the syntax correct for this type of request. Suggestions?
response = client.request('facts',[:'=', 'name', 'fs_space'])nodes = response.data