On Mon, Oct 17, 2011 at 2:58 PM, Matt Zagrabelny <mzagr...@d.umn.edu> wrote:
> Hi,
>
> Is it possible to pass parameters to use in templates?

Template function does not support parameters, just an array of erb templates.

> Or do you just set "global" variables in the class and then reference
> that in the template?

You can access any variable in the scope the template function is
invoked or use scope.lookupvar to be more explicit. See:
http://docs.puppetlabs.com/guides/templating.html

Thanks,

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.

Reply via email to