----- Original Message -----
> From: "pablo" <[email protected]>
> To: [email protected]
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to