Douglas Garstang wrote:

> How can I interpolate a hash inside a string?

Like this:

    "tomcat-${config['tomcat_version_server']}"

The curly braces groups things so the parser knows that the
variable expression to expand doesn't end after the "g" in
"config".

I'm not sure where this is documented, though.  I can't find
it after a quick look in the language guide, where I had
expected it to be.


        /Bellman

-- 
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