On 4 Mar 2011, at 6:03 PM, nfagerlund wrote: > This patch appends **Autorequires:** notes to the @doc string of every type > whose instances can autorequire other resources. This will put autorequire > info right on the types reference where it can do the most good. > > Signed-off-by: nfagerlund <[email protected]> > ---
> diff --git a/lib/puppet/type/file.rb b/lib/puppet/type/file.rb > index cbb51bb..e1a4ecb 100644 > --- a/lib/puppet/type/file.rb > +++ b/lib/puppet/type/file.rb > @@ -22,7 +22,9 @@ Puppet::Type.newtype(:file) do > If you find that you are often copying files in from a central > location, rather than using native resources, please contact > Puppet Labs and we can hopefully work with you to develop a > - native resource to support what you are doing." > + native resource to support what you are doing. > + > + **Autorequires:** If Puppet is managing the user or group that owns a > file, the file resource will autorequire them. If Puppet is managing any > parent directories of a file, the file resource will autorequire them." This last part isn't quite true. Currently the file will only autorequire its parent directory, if the latter is managed. If my patch attached to #6368 makes it into Statler, then the file will autorequire its nearest managed ancestor directory, but only the nearest. -- Ian Ward Comfort <[email protected]> Systems Team Lead, Academic Computing Services, Stanford University -- You received this message because you are subscribed to the Google Groups "Puppet Developers" 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-dev?hl=en.
