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