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.mimedefang":
ensure => "$adminroot/mime-defang/clamd.mimedefang",
require => [ File["$adminroot/mime-defang"],
Package["$packagelist"],
Package["mimedefang"]
],
#....
getting error:
<quote>
Configuration could not be instantiated: Could not find dependency
Package[clamavclamdclamav-db] for File[/etc/rc.d/init.d/clamd.mimedefang]
</quote>
As you can see, it's running the names together. If I remove the double
quotes to be...
Package[$packagelist],
...it tells me...
<quote>
warning: Not using cache on failed catalog
warning: Configuration could not be instantiated: wrong number of arguments
(3 for 2)
</quote>
Similar syntax appears to be working fine in another module. What could I be
doing wrong?
TIA
--
John Ingersoll
EITS/CSSA
University of Georgia, Athens
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.