Steven,

You can use Hashes all the way.  See -->
https://github.com/glarizza/puppet-datademo/blob/master/hieradb/puppetmaster.puppetlabs.vm.yaml
for my Hiera YAML file and declare with:

$war_installs = hiera_hash('war_installs')
create_resources('tomcat::war', $war_installs)


Does this help?


On Tue, Feb 14, 2012 at 8:40 AM, spokra <[email protected]> wrote:

> Since there are no looping constructs in puppet other that passing an
> array to a defined resource.
> I'm passing an array of hashs to a defined resource and I'm getting a
> string that is the contests  of the hash.   is there away in puppet to
> cast a variable to the correct data type?    Or is there a better way
> of accomplishing this?
>
> My code is at the following github gist
>
> https://gist.github.com/1827882
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>


-- 

Gary Larizza
Professional Services Engineer
Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to