Thanks Ken, I took a look at the Command API and seems to be quite interesting, but it triggers a few more questions.
As a reminder (also for others), what I wanted to do was to add exported resources from Node_A (managed by PuppetMaster_A that has its own PuppetDB_A) into a different PuppetDB_B, where Node_A is unknown, in order for other Nodes_B (managed by PuppetMaster_B) be aware and possibly realize those exported resources. Taking a look the Commands API seem to capabilities to change a whole catalog, or facts. Do they need to be existing catalogs, or could I add new ones? I am thinking: If I want to add Node_A's exported resource(s) to PuppetDB_B, I could "artificially" add its whole catalog to PuppetDB_B... but the Command API is "replace catalog", no "add catalog". Would it be rejected? How does the first catalog of a node get introduced into the DB? And moreover, how do I query a whole catalog? Another possibility would be to include the resource inside an existing Node_B catalog on the PuppetDB_B (after all, exported resources don't really mater what node do they belong, as long as they have the right attributes, right?), but the Catalog wire format seems to require the whole set of resources, so, if I define the resources of Node_B with some exported resources from Node_A, I believe I would lose the original Node_B's resources. The only possibility would be to query Node_B full catalog, and *add also* those resources from Node_A before sending them to the DB... and this seems to me like a bit dirty :) Am I missing anything? Or is there another way to implemen what I need with Puppet 3.2? Thanks again, BR/Pablo On 10/10/2013 09:16 AM, Ken Barber wrote: >>> Is there a mechanism to pull and push some exported resources from one >>> PuppetDB to another? I guess this could be done with the API, but has >>> anybody tried it, or will it work at all? > Not provided by us, yet. We've had a lot of discussions internally > about this kind of thing. How about you outline your requirements in > the form of a feature request here: > > http://projects.puppetlabs.com/projects/puppetdb/issues > >> Did anybody try to push data to a PuppetDB by hand? The API does not >> seem to have the PUT or POST methods. > The client obviously pushes uses POST :-). The documentation for the > mechanism is here: > > http://docs.puppetlabs.com/puppetdb/1.5/api/commands.html > > ken. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
