On Fri, Aug 24, 2012 at 8:22 AM, tom s <puppetl...@tomseeley.co.uk> wrote: > I'm sure I'm doing something silly here, but I'm struggling to pass an array > variable to a parameterized class and have it stay as an array: > > # cat modules/testmodule/manifests/init.pp > class testmodule($array1) { > file {'/tmp/testmodule' : > content => template('testmodule/testmodule.erb'), > } > } > > # cat manifests/nodes/site.pp > node 'testclient' { > $myarray = ['aaa','bbb'] > class { "testmodule": > array1 => [$myarray],
I don't think you want to add [ ] around $myarray which turns it into [['aaa','bbb']]. Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.