I'm using puppet 4.4.1.  I have a case where I need the IP addresses of all 
the servers that fit a certain set of criteria to appear in a YAML list in 
a config file on a particular host.

It seems like the first step would be to create an exported resource with 
the required data in it, but I haven't yet found a way to refer to those 
data from inside a template (or from inside a module in order to populate a 
variable I can use in a template).   It seems like this would be a common 
pattern, but the closest examples I've been able to find are for realizing 
the exported resource to create a file or other resource on a system, 
rather than incorporate some of the exported resource's data in other 
resources.

How do people normally go about doing something like this?  Are there some 
examples I've just failed to find?





-- 
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/d60d5c64-babe-4b46-8529-ceac74cf576b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to