Issue #7516 has been updated by Rob Terhaar.

If the inventory API allowed a return_format argument, that would be really 
useful.

For example, if I query:
<pre>
https://127.0.0.1:8140/production/facts_search/search?facts.ec2_instance_type=m1.small&facts.puppetversion=2.7.6
</pre>

I then have to parse that output, and make several more requests for each 
server to find the IP of each node. The inventory service is fast! But having 
to make multiple queries for each node is less than ideal.


However, if I could set a return type with multiple facts, that would save me 
the hassle of making multiple requests.
<pre>
https://127.0.0.1:8140/production/facts_search/search?facts.ec2_instance_type=m1.small&facts.puppetversion=2.7.6&return=hostname,ipaddress
</pre>


 
----------------------------------------
Feature #7516: `facts_search` inventory api should return more information, 
including the search predicate
https://projects.puppetlabs.com/issues/7516

Author: Nick Fagerlund
Status: Needs More Information
Priority: Normal
Assignee: Daniel Pittman
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


The current inventory API returns only a list of nodes, with no information 
about any node in that set. This makes evaluating the results of the search 
very difficult. (You searched for all nodes whose OS isn't CentOS? Well, what 
ARE their OSes? No way to tell other than loading the complete facts set for 
all however-many-dozen nodes.) 

This is in support of issue #7416.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to