The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #6809

Ignore "links => follow" when managing symlinks

Added by Nigel Kersten about 3 years ago. Updated over 1 year ago.

Status:AcceptedStart date:03/21/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Affected Puppet version: Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

It doesn’t make sense to set “links => follow” inside a symlink resource. We’re not managing content, and you end up with edge cases like this:


file { "/tmp/foo":
  ensure => directory
}

file { "/tmp/bar":
  ensure => "/tmp/foo",
  links  => follow
}

kripke:~ nbk$ puppet -v /tmp/test.pp 
info: Applying configuration version '1300749546'
notice: /Stage[main]//File[/tmp/bar]/ensure: created
notice: /Stage[main]//File[/tmp/foo]/ensure: created

kripke:~ nbk$ puppet -v /tmp/test.pp 
info: Applying configuration version '1300749548'
info: /Stage[main]//File[/tmp/bar]: Recursively backing up to filebucket
notice: /Stage[main]//File[/tmp/bar]: Not removing directory; use 'force' to override
info: /Stage[main]//File[/tmp/bar]: Recursively backing up to filebucket
notice: /Stage[main]//File[/tmp/bar]: Not removing directory; use 'force' to override
err: /Stage[main]//File[/tmp/bar]/ensure: change from directory to link failed: Could not remove existing file

History

#1 Updated by Michael Stahnke about 2 years ago

  • Target version changed from 2.6.x to 2.7.x

2.6.x is closed. Moving to 2.7.x

#2 Updated by Andrew Parker over 1 year ago

  • Target version deleted (2.7.x)

#3 Updated by Andrew Parker over 1 year ago

As the 2.7.x line is winding down, I am removing the target at 2.7.x from tickets in the system. The 2.7 line should only receive fixes for major problems (crashes, for instance) or security problems.

Also available in: Atom PDF