On 06/05/2014 03:07 PM, Sans wrote:
> 
> w.r.t. inline_templates, what else would you suggest? The hiera hash
> that I'm using here is something like this:

That looks nice. Why don't you structure your define zpack_installer()
so that you can use

create_resources('zpack_installer', $hash)

As for variable value reuse - you should rethink your requirements. The
class cannot require resources it declares itself.

As for the yumrepos, that makes more sense (I guess?) but for that you
want to
 1. create a custom function that consumes your hash and returns the
repo names
 2. write that to a variable (which stores an array value then) so that
you can
 3. require Yumrepo[$my_repo_list]

HTH,
Felix

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53906DE9.4050208%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to