On 06/21/2010 09:51 AM, Matt Keating wrote:
Not to hijack your thread, but I'm having a similar issue with trying
to pass an array to a define:
class solr {
$configFileList = ["admin-extra.html", "elevate.xml"]
define configFiles ( $solrIndex, $fileName ) {
file { "/var/solr/$solrIndex/conf/$fileName" :
ensure => present,
owner => "tomcat",
source =>
"puppet://puppetmaster.dennisinteractive.co.uk/files/solr/conf/$fileName"
}
}
}
Then If I call it like so:
solr::configFiles { $title :
fileName => $configFileList,
solrIndex => $title,
require => File["/var/solr/$title/conf/xslt"],
}
It doesnt seem to pass the $configFileList through correctly. Any
idea's on what I should be doing?
Try wrapping fileName => [ $configFileList ] like that. Might work that way.
--
--
Joe McDonagh
Operations Engineer
AIM: YoosingYoonickz
IRC: joe-mac on freenode
"When the going gets weird, the weird turn pro."
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.