----- Original Message ----- > From: "pablo" <pablo.fernan...@cscs.ch> > To: puppet-users@googlegroups.com > Sent: Tuesday, March 27, 2012 3:55:05 PM > Subject: [Puppet Users] Arrays from templates > > Hi, > > I am having an issue trying to use the inline_template function to > return an array. This is what I do: > > $array = inline_template ("<%= a=['a1','b2','c3']; a %>") > notify {"array: ${array}":}
inline_template can only return strings, not arrays or hashes. You'll need to write a parser function -- 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.