Issue #4932 has been updated by Steve Feehan.
One additional note: this does appear to be a regression from (at least) 0.25.4. The manifest above produces the expected result: <pre> $ puppet --version 0.25.4 $ puppet recurse.pp notice: //File[/tmp/dst]/ensure: created notice: /File[/tmp/dst/dir]/ensure: created notice: /File[/tmp/dst/link]/ensure: created $ find /tmp/dst -ls 4390942 4 drwxr-xr-x 3 xxxxxxx xxxxxxxx 4096 Oct 4 15:23 /tmp/dst 4390944 0 lrwxrwxrwx 1 xxxxxxx xxxxxxxx 3 Oct 4 15:23 /tmp/dst/link -> dir 4390943 4 drwxr-xr-x 2 xxxxxxx xxxxxxxx 4096 Oct 4 15:23 /tmp/dst/dir $ </pre> Thanks, Steve ---------------------------------------- Bug #4932: file resource links => manage confusion http://projects.puppetlabs.com/issues/4932 Author: Steve Feehan Status: Unreviewed Priority: Normal Assignee: Category: Target version: Affected version: 2.6.1 Keywords: Branch: I'm not sure if this is a bug. My reading of the documentation leaves room for a bit of confusion. This example: <pre> $ mkdir /tmp/src $ mkdir /tmp/src/dir $ ln -sf dir /tmp/src/link </pre> <pre> file { "/tmp/dst": source => "file:///tmp/src", links => manage, recurse => remote, force => true, } </pre> Produces the following error: <pre> $ puppet recurse.pp notice: /Stage[main]//File[/tmp/dst]/ensure: created notice: /File[/tmp/dst/dir]/ensure: created err: /File[/tmp/dst/link]: Could not evaluate: Got nil value for content $ </pre> The documentation says: <pre> You cannot currently copy links using this mechanism; set links to follow if any remote sources are links. </pre> But I'm not sure to what "mechanism" applies? If it applies to remote sources, then I'm not sure I understand the utility of "links => manage"? Does this mean you can't "manage" links for any copy? Only for non-copy file management? If this is not a bug and my understanding of the documentation is correct, then I think the ticket should be a feature request. -- 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.
