Issue #5421 has been updated by Patrick Carlisle.
Status changed from In Topic Branch Pending Review to Merged - Pending Release
Target version changed from Telly to 2.7.8
Merged commit:4ca51f8a4ff0969251d5f224e52d3d126e12fa95
(#5421) Link should autorequire target
When we manage a local link to a directory and the target directory is
managed by puppet as well, establish an autorequire. So if we have
something like
file { '/foo': ensure => directory }
file { '/link_to_foo': ensure => '/foo' }
file { '/link_to_foo/bar': ensure => file }
we can ensure that puppet does not create dead links and does not try to
create '/link_to_foo/bar' before /foo is created.
----------------------------------------
Feature #5421: Fileresource: Link should autorequire target
https://projects.puppetlabs.com/issues/5421
Author: Stefan Schulte
Status: Merged - Pending Release
Priority: Normal
Assignee: Stefan Schulte
Category: file
Target version: 2.7.8
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.