Issue #3997 has been reported by Nico Schottelius.
----------------------------------------
Feature #3997: Make local name available in types
http://projects.puppetlabs.com/issues/3997
Author: Nico Schottelius
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Affected version: 0.25.4
Keywords:
Branch:
I'm trying to create an automatic require on the destination of a mount
directory like this:
node sans-tftp {
include nfs::client
file { "/home/services/tftp":
ensure => directory,
}
mount { "/home/services/tftp":
atboot => true,
device => "fs-systems.inf.ethz.ch:/export/groups/systems/p1/project/sans",
dump => 0,
pass => 0,
ensure => mounted,
fstype => "nfs",
options => "defaults",
require => [Package["nfs::common"],File[$title]],
}
include tftpd_hpa
}
This results in the error
Could not find dependency File[sans-tftp] for Mount[/home/services/tftp] at
/etc/puppet/manifests/nodes/nico.pp:312
According to IRC, $name is only available from the sourrounding scope. I think
having both available, would make life much easier.
--
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.