Issue #5421 has been updated by Nigel Kersten.

Ah now I understand. So your patch definitely only affects File resources that 
are symlinks? and works happily whether you specify the target with ensure or 
target ?
----------------------------------------
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: 


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