Issue #5061 has been reported by Dan Bode.

----------------------------------------
Feature #5061: should be able to access ($name, $module_name, $title) from 
within defined resources type parameter list
https://projects.puppetlabs.com/issues/5061

Author: Dan Bode
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


users commonly want the default for a parameter for a defined resource type to 
be $name

define manage_users ($home => "/home/${name}") {
  file { $home:
    ensure => directory,
  }
}

this currently does not work because $name is not available (or assigned to 
manage_users scope )when "/home/${name}" is evaluated.




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to