>> 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
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
-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
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