Re: [Puppet Users] subscribe require

2010-03-18 Thread Christopher Johnston
This answered all my questions, thx! Should hopefully clean up my manifests a bit those execs were overkill. On Thu, Mar 18, 2010 at 11:51 AM, Michael DeHaan wrote: > On Thu, Mar 18, 2010 at 10:21 AM, Christopher Johnston > wrote: > > I keep writing these exec types to things like service > re

Re: [Puppet Users] subscribe require

2010-03-18 Thread Michael DeHaan
On Thu, Mar 18, 2010 at 10:21 AM, Christopher Johnston wrote: > I keep writing these exec types to things like service restart, > sounds like I dont need them and could just use subscribe which will in > effect do the same thing. >   exec { 'sssd-restart': >     command     => '/sbin/service sssd

Re: [Puppet Users] subscribe require

2010-03-18 Thread Christopher Johnston
I keep writing these exec types to things like service restart, sounds like I dont need them and could just use subscribe which will in effect do the same thing. exec { 'sssd-restart': command => '/sbin/service sssd restart', refreshonly => true, require => File['/etc/sssd/s

Re: [Puppet Users] subscribe require

2010-03-18 Thread Michael DeHaan
> > To put it another way, subscribe is a special case of require with > added magic in it.    They both imply the same ordering relationship, > but require adds the additional 'restart if this is changed' logic. That should read "but subscribe adds the additional..." > > Similarly, notify is lik

Re: [Puppet Users] subscribe require

2010-03-18 Thread Christopher Johnston
Ok, that helped a lot. I read the documentation which is helpful, but the way you described it here made it easier to understand the use cases. On Thu, Mar 18, 2010 at 10:10 AM, Peter Meier wrote: > But what I am confused about is how is subscribe different? Doesn't that >> handle the same rela

Re: [Puppet Users] subscribe require

2010-03-18 Thread Michael DeHaan
On Thu, Mar 18, 2010 at 10:07 AM, Daniel Kerwin wrote: > On Thu, Mar 18, 2010 at 2:57 PM, Christopher Johnston > wrote: >> Can some help explain the differences and use cases of subscribe and >> require.  They seem to have a bit overlap in the sense that they do the same >> thing almost.  I under

Re: [Puppet Users] subscribe require

2010-03-18 Thread Peter Meier
But what I am confused about is how is subscribe different? Doesn't that handle the same relationship of saying that you are "subscribing" (and/or) requiring something? there is subscribe/notify and require/before. The last 2 simply order resources and the first two either listen on events or

Re: [Puppet Users] subscribe require

2010-03-18 Thread Daniel Kerwin
On Thu, Mar 18, 2010 at 2:57 PM, Christopher Johnston wrote: > Can some help explain the differences and use cases of subscribe and > require.  They seem to have a bit overlap in the sense that they do the same > thing almost.  I understand a require sets up a dependency.  So for eg the > followin

[Puppet Users] subscribe require

2010-03-18 Thread Christopher Johnston
Can some help explain the differences and use cases of subscribe and require. They seem to have a bit overlap in the sense that they do the same thing almost. I understand a require sets up a dependency. So for eg the following below would setup a dependency on the package pam to be installed in