any solutions? :)

On Monday, October 19, 2009 9:19:43 AM UTC-4, Bernhard Bock wrote:
>
> Hi,
>
> I'm trying to develop a class that autogenerates a config file based
> on an .erb template.
> It shall populate the config file with data exported from various hosts.
>
> Some pseudocode to clarify my issue:
>
> node n1 {
>    @@mytype {
>       "name":
>       property => "foo"
>    }
> }
>
> template.erb:
> <% mytype.each do |bar| %>
> <%= bar.name %>
> <%= bar.property %>
> <% end %>
>
> My question is: How can I access and iterate through the exported
> resources in the template? mytype.each will not work...
>
> best regards
> Bernhard
>
>

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to