Re: [Puppet Users] Array Length

2012-08-15 Thread Ryan Coleman
On Wednesday, August 15, 2012, Douglas Garstang wrote: > On Wed, Aug 15, 2012 at 5:03 PM, Calvin Walton > > > wrote: > > On Wed, 2012-08-15 at 14:59 -0700, Douglas Garstang wrote: > >> On Wed, Aug 15, 2012 at 2:58 PM, Douglas Garstang > >> Oops.Typo in paste.I actually used > >> > >> $foo = inlin

Re: [Puppet Users] Array Length

2012-08-15 Thread Douglas Garstang
On Wed, Aug 15, 2012 at 5:03 PM, Calvin Walton wrote: > On Wed, 2012-08-15 at 14:59 -0700, Douglas Garstang wrote: >> On Wed, Aug 15, 2012 at 2:58 PM, Douglas Garstang >> Oops.Typo in paste.I actually used >> >> $foo = inline_template("<%= [$pvdisks] %>.length") > > You seem to be misunderstanding

Re: [Puppet Users] Array Length

2012-08-15 Thread Calvin Walton
On Wed, 2012-08-15 at 14:59 -0700, Douglas Garstang wrote: > On Wed, Aug 15, 2012 at 2:58 PM, Douglas Garstang > Oops.Typo in paste.I actually used > > $foo = inline_template("<%= [$pvdisks] %>.length") You seem to be misunderstanding how erb templates work; I strongly recommend that you go and r

Re: [Puppet Users] Array Length

2012-08-15 Thread Tom De Vylder
On 16 Aug 2012, at 00:07, Douglas Garstang wrote: > On Wed, Aug 15, 2012 at 3:05 PM, Tom De Vylder wrote: >> >> On 15 Aug 2012, at 23:58, Douglas Garstang wrote: >> >>> On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote: On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang wrote: >>>

Re: [Puppet Users] Array Length

2012-08-15 Thread Douglas Garstang
On Wed, Aug 15, 2012 at 3:05 PM, Tom De Vylder wrote: > > On 15 Aug 2012, at 23:58, Douglas Garstang wrote: > >> On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote: >>> On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang >>> wrote: How do I get get length of an array in puppet DSL? >>> >>> H

Re: [Puppet Users] Array Length

2012-08-15 Thread Tom De Vylder
On 15 Aug 2012, at 23:58, Douglas Garstang wrote: > On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote: >> On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang >> wrote: >>> How do I get get length of an array in puppet DSL? >> >> Hi Doug, >> >> You can install the puppetlabs-stdlib module from

Re: [Puppet Users] Array Length

2012-08-15 Thread Douglas Garstang
On Wed, Aug 15, 2012 at 2:58 PM, Douglas Garstang wrote: > On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote: >> On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang >> wrote: >>> How do I get get length of an array in puppet DSL? >> >> Hi Doug, >> >> You can install the puppetlabs-stdlib module

Re: [Puppet Users] Array Length

2012-08-15 Thread Douglas Garstang
On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote: > On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang > wrote: >> How do I get get length of an array in puppet DSL? > > Hi Doug, > > You can install the puppetlabs-stdlib module from the Forge and use > the size function. > Ryan, No thanks. I'

Re: [Puppet Users] Array Length

2012-08-15 Thread Ryan Coleman
On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang wrote: > How do I get get length of an array in puppet DSL? Hi Doug, You can install the puppetlabs-stdlib module from the Forge and use the size function. Forge page: http://forge.puppetlabs.com/puppetlabs/stdlib The raw function code: https://