Issue #5421 has been updated by Stefan Schulte.

Branch set to https://github.com/stschulte/puppet/tree/feature/2.7.x/5421

The patch just drops target in the autorequire array. And I am not aware of any 
other meaning for target than saying that the described file should be a 
symlink.

I rebased the branch and added a test to ensure that both ways (target via 
target property or target via ensure property) do work.


----------------------------------------
Feature #5421: Fileresource: Link should autorequire target
https://projects.puppetlabs.com/issues/5421

Author: Stefan Schulte
Status: Needs More Information
Priority: Normal
Assignee: Stefan Schulte
Category: file
Target version: Telly
Affected Puppet version: 
Keywords: 
Branch: https://github.com/stschulte/puppet/tree/feature/2.7.x/5421


When you manage links with puppet it's possible that you have to define 
explicit requires. Example:

    file { '/foo/bar':
      ensure => directory,
    }
    file { '/link':
      ensure => link,
      target => '/foo/bar',
    }

This works, because you can create a dead link. But if you now do
    
    file { '/link/i_dont_care_it_was_a_link':
      ensure => file,
    }

this fileresource does autorequire the link, but you cannot be sure, that the 
target exists. I would like that `File['/link']` autorequires 
`File['/foo/bar']`.

Anything that speaks against this autorequire?


-- 
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.

Reply via email to