Hi everyone,
I am just rediting an old post because don't see any answer regarding this matter: ---------- Forwarded message ---------- From: Arnau Bria <arnaub...@pic.es> Date: Jun 30 2009, 5:01 pm Subject: import Class vs require vs inherits To: Puppet Users Hi all, I have a couple of "basic" questions on classes. In a class, what's the diff between: *don't take in count syntax, please. ---------------------------------- class class_B { package { fortune } file { dummy } } ---------------------------------- example 1) class class_A { include class_B package { foo } } example 2) class class_A { file { bogus before = > Package [foo], } package { foo require =>Class["class_B"], } } example 3) class class_A inherits class_B { package { foo } } In first example class_B will be evaluated before ALL class_A. so package fortune and dummy file will be installed/created before package foo. In second one, class_B will be evaluted ONLY when package foo. So, first bogus package, then, before foo, fortune and summy file. And on third example? same as first one? I don't see difference between example 1 and 3. ------------- Does anyone could explain to me thoses differences? Regards, JM -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.