Issue #10315 has been updated by Jacob Helwig.
A pending test for this has been merged into 2.7.x in commit:fe30d8f1591077bf9ead0c4ca15c86e1655d4661 ---------------------------------------- Bug #10315: File resource with links=>follow fails to create the resource https://projects.puppetlabs.com/issues/10315 Author: Josh Cooper Status: Accepted Priority: Normal Assignee: Category: file Target version: Affected Puppet version: 2.6.8 Keywords: links Branch: Given a file /tmp/blah and symlink /tmp/hoho that points to /tmp/blah, and this manifest, <pre> file { "/tmp/foo": source => "file:///tmp/hoho", links => follow, } </pre> puppet should create a file called /tmp/foo, whose contents are that of /tmp/blah (due to following the link). This functionality was first reported broken in #2817, which was fixed in 0.25.2. However, this is again broken for a different reason: <pre> err: /Stage[main]//File[/tmp/foo]/ensure: change from absent to present failed: Could not rename temporary file /tmp/foo.puppettmp_8386 to /tmp/foo: File written to disk did not match checksum; discarding changes ( vs {md5}d41d8cd98f00b204e9800998ecf8427e) at line 5 at line 5 </pre> This new error is a result of a change made for #6856 first released in 2.6.8. See commit:e493f8acf9fe40baadf4fcd4e1176afa6264d768 The script below will reproduce the problem <pre> #!/bin/sh rm -f /tmp/blah /tmp/hoho /tmp/foo echo "hello" > /tmp/blah ln -s /tmp/blah /tmp/hoho puppet apply <<-EOF file { "/tmp/foo": source => "file:///tmp/hoho", links => follow, } EOF cat /tmp/foo </pre> -- 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.
