Re: [Puppet Users] Fun with hashes and ERB

2011-05-20 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Thanks, that worked perfectly! I had no idea key and value were reserved > words. they aren't and imho your example looks quite fine. But as you didn't post the erb error in the first place, it's hard to tell what is actually really wrong. ~pete -

Re: [Puppet Users] Fun with hashes and ERB

2011-05-17 Thread Aaron Grewell
Thanks, that worked perfectly! I had no idea key and value were reserved words. On Mon, May 16, 2011 at 6:16 PM, yzhk...@gmail.com wrote: > multipaths { > <% devices.each do |key,value| -%> > multipath { > wwid<%= value %> > alias <%= key %> > } > <% end -%

Re: [Puppet Users] Fun with hashes and ERB

2011-05-16 Thread yzhk...@gmail.com
multipaths { <% devices.each do |key,value| -%> multipath { wwid<%= value %> alias <%= key %> } <% end -%> } On Tue, May 17, 2011 at 2:29 AM, Aaron Grewell wrote: > Hi all, > I'm trying to figure out the intersection of hashes and ERB. I don't know > Ruby,

[Puppet Users] Fun with hashes and ERB

2011-05-16 Thread Aaron Grewell
Hi all, I'm trying to figure out the intersection of hashes and ERB. I don't know Ruby, so I put this together from examples available online and predictably it generates an ERB syntax error. Can you point me in the right direction? ### Call: class {'multipath': devices => { oradata0