On Wednesday, March 20, 2013 5:41:47 AM UTC-5, Russell Parsloe wrote:
>
> I'm trying to use Puppet and PuppetDB to export a config file from one 
> node, and collect it on another i.e.
>
> export */etc/app1/file1.cfg* from *node a* and collect *
> /etc/app2/file2.cfg* on *node b*.
>
> I need the contents of file1.cfg and file2.cfg to be the same, but the 
> paths and file names themselves are different. I cannot centralise this 
> file as it is generated at install time by node a.
>
>
If by "generated at install time by node a" you mean that a local process 
running on node a creates the file, then what you are asking for is not 
Puppet exported resources.  Exported resources are a means for the master 
to record certain declarations made during the compilation of one node's 
catalog so that they can later be incorporated by reference into other 
nodes' catalogs.  All the necessary details of the resource to be exported 
must therefore be known to the master -- exported resources do not collect 
data from clients.

If, on the other hand, what you want to do is consistent with Puppet 
exported resources as I described them, then I think Felix's suggestion of 
using property overrides at collection time will probably work fine.  The 
only caveat is that you may find that Puppet will not let you declare a 
physical /etc/app1/file1.cfg on node b because of title collision with the 
collected resource.


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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to