On Tuesday, November 27, 2012 1:05:48 PM UTC-6, joe wrote: > > Instead of subscribe => Package, it's require => Package['toola'] or > similar. >
The OP does not use 'subscribe'. He uses 'notify', and 'notify' provides a superset of the behavior of 'before'. With the code he presented, he should not see Class['configure'] applied before any of Package['toola'], Package['toolb'], or Package['toolc']. I would like to see a complete, minimal example that demonstrates the faulty behavior, as I suspect it is related to something not portrayed in the example given. > > If you want to make sure all three packages are installed before the file, > the best thing in this situation is to order the classes. > What he has written should work just fine. Relationships to classes sometimes make sense and sometimes do not. Among other things, they do not make sense for signaling relationships (expressed using 'notify' or 'subscribe', or the ~> or <~ operators). On the other hand, I don't think signaling relationships involving classes are any more meaningful than ordinary ones, inasmuch as classes neither broadcast events nor have a refresh behavior. File resources also have no refresh behavior, so there is really no point in using 'notify' instead of 'before' in the example. Thus it could indeed work -- for that example -- to set up a relationship at class level. I think there must be more to this story, though. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ONMQ_4WY3mUJ. 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.