On Thursday, June 27, 2013 1:30:42 PM UTC-5, Vasiliy Boulytchev wrote:
>
> Sir, have you been able to find a solution?
>


The approach the OP proposed is not supported by Puppet.  Among the 
alternatives are:

   - Use the Concat module.  This allows each contributing node to export 
   one or more resources that represent fragments of the target file, which 
   are collected and assembled for the node(s) that needs the whole target 
   file.  The fragments can be formatted via templates, but their assembly 
   does not use a template (and therefore does not involve iterating a 
   collection or accessing anything therein from a template).
   - Record the needed data in an accessible external store in the first 
   place, so that the target node can load it via Hiera (or another data 
   access function) instead of trying to use exported resources as a vehicle 
   for data.
   - Use a data access function in your template to query puppetdb 
   (supposing you are using Puppet 3) to extract the data you want about other 
   nodes' exported resources.

Of those, I would look first at Concat.


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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to