Issue #5132 has been updated by Matt Robinson. Assignee changed from Matt Robinson to Teyo Tyree Branch set to http://github.com/mmrobins/puppet/tree/ticket/next/5132
The attached branch should allow you to start a puppet master and use curl command to query for nodes that match fact information in the yamldir. Here's an example curl command that I was using to test: curl https://localhost:8140/production/inventory/whatever\?facts.sp_number_processors.ge=3\&facts.sp_packages=0 -H 'Accept: pson' -k -X GET You can see that fact queries are prefixed facts. and if you want to do a comparison other than equailty to postfix the factname with .comparison type (eg .ge, .gt, .lt, .le). I have the auth.conf set to be wide open so that I don't have to pass certificates around in curl. There's info on how to do that on the doc.puppetlabs.com security section. ---------------------------------------- Feature #5132: Define REST API for facts https://projects.puppetlabs.com/issues/5132 Author: Matt Robinson Status: Accepted Priority: Normal Assignee: Teyo Tyree Category: API Target version: Statler Affected Puppet version: development Keywords: Branch: http://github.com/mmrobins/puppet/tree/ticket/next/5132 Need to be able to retrieve facts per node (already available), by query of facts and to upload fact information. -- 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.
