Given a variable that holds a class name is it possible to resolve the 
value of a variable within  that class?  For example 

class classes::myclass{
  $install_dir = '/xyz'
}

class example($class_name='classes::myclass'){
 file {"/mylink" :
    ensure => link,
    target => "${${class_name}::install_dir}",
  }
}

Right now it appears that the parser doesn't recognize the inner variable. 
Currently running puppet v3.0.1.
I would like the target of the link to resolve to /xyz.  Is this possible?  

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to