Hi all,
I'm working with Puppet version 0.25.4 and as far as I have read in this list
it's not possible to access complex data structures from within an ERB
template, instead serializing is needed. Due to my lack of Ruby knowledge I
didn't find the right solution for this problem:
Given this
Now I want to iterate over the 'workers' inside the ERB template and tried
(among others) this:
16 % workers.each do |worker| -%
17 %= @m_worker = Marshal.load(worker) %
18 worker.%= worker %.type=%= @m_worker.type %
...
25
26 % end -%
Accessing the 'workers'
On Fri, Apr 30, 2010 at 9:18 AM, Michael DeHaan mich...@puppetlabs.com wrote:
Now I want to iterate over the 'workers' inside the ERB template and tried
(among others) this:
16 % workers.each do |worker| -%
17 %= @m_worker = Marshal.load(worker) %
18 worker.%= worker %.type=%=