Re: [Puppet Users] How do I generate a sequence number in a template

2013-02-04 Thread David Kerr
yeah, i saw that, and fixed it, but still no good. i had thought/hoped that i deleted this post and posted my next one which you also kindly answered. On Monday, February 4, 2013 9:05:24 PM UTC-8, Aaron Russo wrote: > > > On Mon, Feb 4, 2013 at 5:41 PM, David Kerr > > wrote: > >> My template fo

Re: [Puppet Users] How do I generate a sequence number in a template

2013-02-04 Thread Aaron Russo
On Mon, Feb 4, 2013 at 5:41 PM, David Kerr wrote: > My template for this chunk looks like: > <% Array(ipaddress).zip(Array(pgport)).each do |ipaddress,port| -%> > <% backend = 0 %> > backend_hostname<%= backend -%> = <%= ipaddress %> > backend_port<%= backend -%> = <%= port %> > backend_weight<%=

[Puppet Users] How do I generate a sequence number in a template

2013-02-04 Thread David Kerr
I'm trying to puppetize my PgPool install. PgPool uses the convention: backend_hostname0 = backend_port0 = backend_weight0 = backend_data_directory0 = backend_flag0 = I'm using exported resources and concat to auto-detect postgres instances. My template for this chunk looks like: <% Array(i