On 2014-11-09 16:04, Brandon Metcalf wrote:
On Sunday, September 7, 2014 9:39:56 AM UTC-5, Felix.Frank wrote:
On 09/06/2014 11:09 PM, Spencer Krum wrote:
>
> $java_home = $java_home_var
>
> Barring that, this is the correct way to use a template:
>
> $java_home = inline_template('<%= @java_home_var %>')
Well, yes, but I got the impression that the OP has a *variable name*
stored in $java_home_var and needs way to retrieve it inside a
template..
Granted, such things should be done in a parser function, but the error
message is very confusing nontheless.
That is correct. $java_home_var does contain a variable name. Using a
variable name in a variable is almost always the wrong approach, but I
couldn't find a better way to do this. Could you explain how this could
be accomplished with a parser function?
Before taking that route - where does the $java_home_var come from ?
Is it a fact? Does it refer to the name of another fact?
- henrik
--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/44f9aa92-0b0b-4ba4-a39b-e2fd74767457%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/44f9aa92-0b0b-4ba4-a39b-e2fd74767457%40googlegroups..com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/lusno1%24ki8%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.