Export pools as "Resource Model Source" for Rundeck

We need a API endpoint that exports the list of nodes from all the pools or from a single pool in a manner that can be consumed by Rundeck. I think this combo can be quite powerful for a lot of tasks. 

More about Rundeck:

http://rundeck.org/

More info about "Resource Model Sources":

http://rundeck.org/docs/administration/node-resource-sources.html
http://rundeck.org/docs/manual/rundeck-basics.html#resource-model-document-formats