On 2011/02/16, at 03:44, Felix Frank wrote:

> Hi,
> 
> here's what I'd do:
> 
> 
>          Devices::Device_node {
>              dir     => "$homedir/${service_num}/dev/",
>              require => File["$homedir/${service_num}/dev/"],
>          }

I tried that as well (noted in the original post).  That's what generated the 
error that I included.

Feb 11 17:18:40 puppet-bsd2 puppet-agent[68963]: Could not run Puppet 
configuration client: Could not find dependency File[/opt/home/2/dev/] for 
Exec[create-device-/opt/home/2/dev/null] at 
/usr/local/etc/puppet/production/modules/devices/manifests/init.pp:12

It seems that the problem is that Puppet is expanding the variable in the 
'require' but has not yet expanded the variable in the file{} block, and so 
can't find the file resource to create the dependency tree.

> Although why your original approach didn't work is not quite fathomable
> to me. If the error persistes, try and make a simplified version of your
> manifests that reproduces the same problem. Often, this will make a
> mistake obvious (when it stops to reproduce after all).

This is exactly what I posted.  It's my actual manifests stripped down to just 
the basics required to demonstrate the problem.

> If the problem persists, use the simplified manifest in a bug report.

Okay.  Now that I know this is supposed to work, I'll go ahead and file a bug 
report.  Thanks.



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en.

Reply via email to