> > Is there an elegant way to use complex facts in puppet's erb templates?
>
> Puppet will support hashes in the next major version (Rwolf), although I am
> not sure if the interaction between Puppet and Facter will support it.

Dan,

does this mean it will be possible to have a template like this

     16 <% workers.each do |worker| -%>
     17 worker.<%= worker %>.type=<%= worker['type'] %>
     18 worker.<%= worker %>.host=<%= worker['host'] %>
     ....
     24
     25 <% end -%>

which can be pouplated with an external node definition like this one:

---
classes:
 - vim
 - users
 - templates_eval::testvars
environment: test
parameters:
  workers:
    bo-01-010101:
            type: ajp13
            host: myhostname.net

And is this already available in the current beta release? I didn't
find anything in the release notes so far (concerning ERB templates,
though hashes are mentioned).

Thanks!
Bernd

-- 
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