Possible to singularly define resources then collect in array?
I am looking to define multiple resources singularly (for portability) then "collect" attributes of those resources in an array to populate a config file via an ERB template. The goal is not having to declare the same thing twice for two separate classes/definitions which use the exact same values, just in a different way. Is it possible to declare two resources ('res1' and 'res2') and then create an array with those names (or other specific attributes) to use in an ERB template. For example, here is a broken view of what I'm trying to accomplish:
manifests/nodes/node ... (more)