Re: [Puppet Users] Re: Hash of hashes to file template

2014-10-21 Thread Felix Frank
On 10/07/2014 03:21 PM, jcbollinger wrote: > Can it be a Ruby version thing? > > > > Yes. Hash.each_pair() is new in Ruby 1.9. Uhm, no :-) That would have been bad news for my master. http://www.ruby-doc.org/core-1.8.7/Hash.html#method-i-each_pair Also, Hash.each should be functionally e

[Puppet Users] Re: Hash of hashes to file template

2014-10-07 Thread jcbollinger
On Monday, October 6, 2014 1:47:31 PM UTC-5, Ciro Iriarte wrote: > Trying this approach I get "Detail: undefined method `each_pair' for > #" using this code: > > > <% if (@ospfconfig.is_a?(Hash)) and (@ospfconfig.count > 0) -%> > <% @ospfconfig.sort.each do |instance,instparam| -%> > protocol

Re: [Puppet Users] Re: Hash of hashes to file template

2014-10-07 Thread Ciro Iriarte
El lunes, 6 de octubre de 2014 20:29:05 UTC-3, Henrik Lindberg escribió: > > On 2014-06-10 20:47, Ciro Iriarte wrote: > > > > > > El lunes, 6 de octubre de 2014 10:52:05 UTC-3, jcbollinger escribió: > > > > > > > > On Sunday, October 5, 2014 5:55:55 PM UTC-5, Ciro Iriarte wrote: > > >

Re: [Puppet Users] Re: Hash of hashes to file template

2014-10-06 Thread Henrik Lindberg
On 2014-06-10 20:47, Ciro Iriarte wrote: El lunes, 6 de octubre de 2014 10:52:05 UTC-3, jcbollinger escribió: On Sunday, October 5, 2014 5:55:55 PM UTC-5, Ciro Iriarte wrote: Hi!, I'm starting to work with hiera and file templates, how would be the best way to transform

[Puppet Users] Re: Hash of hashes to file template

2014-10-06 Thread Ciro Iriarte
El lunes, 6 de octubre de 2014 10:52:05 UTC-3, jcbollinger escribió: > > > > On Sunday, October 5, 2014 5:55:55 PM UTC-5, Ciro Iriarte wrote: >> >> Hi!, I'm starting to work with hiera and file templates, how would be the >> best way to transform this hiera output: >> >> myanycast::bird::ospf: >

[Puppet Users] Re: Hash of hashes to file template

2014-10-06 Thread jcbollinger
On Sunday, October 5, 2014 5:55:55 PM UTC-5, Ciro Iriarte wrote: > > Hi!, I'm starting to work with hiera and file templates, how would be the > best way to transform this hiera output: > > myanycast::bird::ospf: > myinstance: > tick: 2 > rfc1583compat: 'yes' > export: 'all' >