Re: [Puppet Users] Problem with custom function returning array

2011-10-13 Thread Nan Liu
On Fri, Oct 7, 2011 at 6:50 AM, Nate wrote: > Hi, > > I'm trying create a custom function that will return an array of file > paths for the file type source.  Instead of defining the following > array for source for each file type: > > file: { "some_file": >  source => [ "puppet:///file/$hostname/

[Puppet Users] Problem with custom function returning array

2011-10-07 Thread Nate
Hi, I'm trying create a custom function that will return an array of file paths for the file type source. Instead of defining the following array for source for each file type: file: { "some_file": source => [ "puppet:///file/$hostname/path", "puppet:///file/$role/ $mode/path", "puppet:///file