I've come into a use case where I need a list of all the instances of a definition. I'd like the syntax to be
class test { $instances = [] } define test::instance() { $instance += ["$name"] } I'm not sure if this will work as anticipated. I believe that this will only update $instance in the test::instance scope not the test scope. The only documentation I have been able to find is here. http://docs.puppetlabs.com/guides/language_tutorial.html#variables Can anyone help me figure this out? It seems like this would be a fairly common thing to do. Spenser -- Spenser Gilliland Computer Engineer Illinois Institute of Technology -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.