Issue #5421 has been updated by Stefan Schulte.
The links parameter only specifies what puppet should do when copying files to
the machine (copy a link or copy the target) or managing contents, right?. I
was talking about using a file resource to make sure a local link exists. Like
in
<pre>
file { '/lib':
ensure => '/lib64',
}
</pre>
or
<pre>
file { '/lib':
ensure => link,
target => '/lib64',
}
</pre>
And the link `File['/lib']` should autorequire the target (so `File['/lib64']`
in this case). This would prevent puppet from creating dead links and managing
`File['/lib/foo']` before the link `File['/lib']` actually points to a
directory.
So I in my opinion the autorequire should be unconditionally (or I didnt got
your point).
----------------------------------------
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.