Normally, I'd say create_resources(), but that needs a hash of hashes, not 
a hash of arrays. Might I ask what the numbers represent, if they aren't 
present in the define?

On Sunday, March 23, 2014 10:10:24 PM UTC-7, backg...@gmail.com wrote:
>
> Given this hash of arrays:
>
> $players = {
>   'joe' => [
>     '150',
>     '200',
>   ],
>   'janet' => 
>     '120',
>     '240',
>   ],
> }
>
> ... and given a define that's like this: 
>
> profile::generate {$player:
>   source => "puppet:///modules/$module_name/$player"
> }
>
> ... how do you call profile::generater without hardcoding 2 defines? 
>
>    
>

-- 
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/e6143da3-1ac7-4380-8a31-6bb39cf9575f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to