On Friday, August 31, 2012 9:00:34 AM UTC+1, David Schmitt wrote: > > On 2012-08-31 09:46, olli...@googlemail.com <javascript:> wrote: > > Hello, > > For the life of me I cannot get this to work. It's seemingly doable with > > a single class but outside.... > > params.pp: > > class vmware::params { > > case $::lsbmajdistrelease { > > '4': { > > $packagelist = "[ 'vmware-tools-esx-kmods-smp', > > 'vmware-tools-esx-kmods-up' ]" > > } > > default: { > > $packagelist = 'vmware-tools-esx-kmods' > > } > > } > > } > > install.pp > > package { "$vmware::params::packagelist": > > Don't quote here. That converts the contents into a string. > > > D. > Thanks David, No matter what I try though it always seems to be passed through as a string rather than the array.
-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/9VAY2vkfA7IJ. To post to this group, send email to puppet-users@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.