On Friday, August 29, 2014 7:07:22 PM UTC-5, Wil Cooley wrote: > > On Fri, Aug 29, 2014 at 12:47 PM, Julien Pivotto <roidel...@inuits.eu > <javascript:>> wrote: > >> On Fri, Aug 29, 2014 at 06:37:19PM +0200, José Luis Ledesma wrote: >> > If both nodes has to export the same resource ( same >> > type/same title) they cannot be collected together. >> > >> > So, if you need to collect both, change the title to make it >> > unique. >> > >> > Regards, >> >> yes, but if they represent the same stuff (remember, we speak about HA), >> would you EXPORT the data on one node or COLLECT the data of one node? >> > > DO they represent the same stuff? Don't the backend nodes that are > exporting the data have bits that are specific to themselves, such as > hostname or IP address, as part of the exported resource? And doesn't the > front-ends that are collecting the resources need to know those unique bits > about each backend? Or am I not understanding the model that you're working > on? > > +1
Those are exactly the right questions. Generally speaking, nodes should export only resources that are in some way specific to themselves. Resources that instead are just generally associated with the site should be declared concretely or virtually, perhaps with the help of external data. Exporting / collecting such resources is messier and more fragile, for no advantage. You know you are running up against this if you find yourself wanting to collect just one of several exported resources, but you don't care which. On the other hand, if you need to collect all the resources in some group (because each adds something different to your configuration), then distinguishing them from each other is the way to go. Typically that means putting a unique identifier of the exporting node into each resource's title. John -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/24a66c85-098b-4483-bb0c-e3d151f90d22%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.