Given

class java::jdk_1_7_u10{
  home=/usr/java/jdk-1.7.0-10
}

$java = jdk_1_7_u10
$java_home = ${java::$java::home}

I would like $java_home to be equal to /usr/java/jdk-1.7.0-10.  Is there an 
elegant way to make this work?  We currently use an inline template to make 
it work.

java_home => inline_template("<%=scope.lookupvar('java::${java}::home')%>"),

But this has always felt like a hack to me so I am curious to know if there 
is a better way?  Currently running puppet 3.0.0.

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to