On Tuesday 27 November 2012 at 22:11, jcbollinger wrote:

>  
>  
> On Tuesday, November 27, 2012 1:05:48 PM UTC-6, joe wrote:
> > 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.
Actually, if you notify a class or define you will notify every resource 
contained inside it, causing services to be restarted and refresh only execs to 
be executed.

--  
Erik Dalén

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

Reply via email to