Re: [Puppet Users] Variable doesn't expand properly

2011-02-11 Thread Felix Frank
>> the background. However, (per orig post) the result of no quotes: > >> ... require => Package[$packagelist], ... > >> was the following : > >>> warning: Not using cache on failed catalog > >> ... and the somewhat obscure: > >>> warning: Configuration could not be instantiated: w

Re: [Puppet Users] Variable doesn't expand properly

2011-02-09 Thread John Ingersoll
On Tue, Feb 8, 2011 at 7:36 PM, Trevor Vaughan wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Don't put $packagelist in quotes. > > $packagelist = Array[...] > "$packagelist" = String(packagelist) > Thanks; makes sense not to use the quotes, seeing now what goes on in the background

Re: [Puppet Users] Variable doesn't expand properly

2011-02-08 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Don't put $packagelist in quotes. $packagelist = Array[...] "$packagelist" = String(packagelist) Trevor On 02/08/2011 05:34 PM, John Ingersoll wrote: > HI, > > I'm getting some strange errors when I try to use a variable in a require => > Package

[Puppet Users] Variable doesn't expand properly

2011-02-08 Thread John Ingersoll
HI, I'm getting some strange errors when I try to use a variable in a require => Package construct, namely: $packagelist = ["clamav", "clamd", "clamav-db"] package { $packagelist: ensure => latest, } # Above apparently works fine... # ...THEN... file { "/etc/rc.d/init.d/clamd