On 6/21/2010 11:16 PM, Thomas S Hatch wrote:
I have written puppet types for cobbler, they seem to work very well,
but I have a question.  Because of the very nature of cobbler there are
a lot of interconnected requirements, and all of these requirements are
directly inferred by the puppet rules, so I don't want to require the
user to make a bunch of "require" statements when it could be very
easily figured out by puppet.  Is there a set way to manage "autorequires"?

Yes. Look for the "autorequire" function in other types. for example File does automatically depend on its parent and owner.

See http://github.com/reductivelabs/puppet/blob/0.25.x/lib/puppet/type/file.rb lines 233-258.


Best Regards, David
--
dasz.at OG              Tel: +43 (0)664 2602670     Web: http://dasz.at
Klosterneuburg                                         UID: ATU64260999

       FB-Nr.: FN 309285 g          FB-Gericht: LG Korneuburg

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

Reply via email to