Re: [Puppet Users] exec and subsribe

2010-09-26 Thread Luc Suryo
Thanks Bruce!

On Sun, Sep 26, 2010 at 9:11 AM, Bruce Richardson wrote:

> On Fri, Sep 24, 2010 at 01:32:15PM -0700, Luc Suryo wrote:
> > Hello
> >
> > simple question ... if 2 or more EXEC subcribes to a file and that file
> is
> > changed would
> > then all the EXECs be run ?
>
> Yes - unless some other condition prevents it (e.g. a failed
> dependency).
>
> > or does it depend whatever the FILE notifies the
> > EXEC?
>
> No.  Notify and subscribe set up the same relationship, just like before
> and require.
>
> --
> Bruce
>
> Remember you're a Womble.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@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.
>
>


-- 
-ls

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.



Re: [Puppet Users] exec and subsribe

2010-09-26 Thread Bruce Richardson
On Fri, Sep 24, 2010 at 01:32:15PM -0700, Luc Suryo wrote:
> Hello
> 
> simple question ... if 2 or more EXEC subcribes to a file and that file is
> changed would
> then all the EXECs be run ?

Yes - unless some other condition prevents it (e.g. a failed
dependency).

> or does it depend whatever the FILE notifies the
> EXEC?

No.  Notify and subscribe set up the same relationship, just like before
and require.

-- 
Bruce

Remember you're a Womble.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.



Re: [Puppet Users] exec and subsribe

2010-09-24 Thread Luc Suryo
I did some test indeed but it was nog clear whatever both exec were executed
i have named.conf and in some case it need a reload and other cases a
restart
if it changes ...

but all good. thanks


On Fri, Sep 24, 2010 at 4:57 PM, Silviu Paragina  wrote:

>  notify and subscribe are somewhat the same thing, but specified in
> different parts of the dependency.
>
> The file resource should notify both execs and/or services, if it doesn't
> it should be considered a bug and reported. ;)
> You should try it just to be sure, it's usually faster than waiting for a
> reply on the list anyway.
>
>
> Silviu
>
>
> On 24.09.2010 23:32, Luc Suryo wrote:
>
>> Hello
>>
>> simple question ... if 2 or more EXEC subcribes to a file and that file is
>> changed would
>> then all the EXECs be run ? or does it depend whatever the FILE notifies
>> the EXEC?
>>
>> please bare in mind. I'm a 'new' puppet user, thanks
>>
>>
>> --
>> -ls
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To post to this group, send email to puppet-us...@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.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@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.
>
>


-- 
-ls

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.



Re: [Puppet Users] exec and subsribe

2010-09-24 Thread Silviu Paragina
 notify and subscribe are somewhat the same thing, but specified in 
different parts of the dependency.


The file resource should notify both execs and/or services, if it 
doesn't it should be considered a bug and reported. ;)
You should try it just to be sure, it's usually faster than waiting for 
a reply on the list anyway.



Silviu

On 24.09.2010 23:32, Luc Suryo wrote:

Hello

simple question ... if 2 or more EXEC subcribes to a file and that 
file is changed would
then all the EXECs be run ? or does it depend whatever the FILE 
notifies the EXEC?


please bare in mind. I'm a 'new' puppet user, thanks


--
-ls
--
You received this message because you are subscribed to the Google 
Groups "Puppet Users" group.

To post to this group, send email to puppet-us...@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.


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@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.



[Puppet Users] exec and subsribe

2010-09-24 Thread Luc Suryo
Hello

simple question ... if 2 or more EXEC subcribes to a file and that file is
changed would
then all the EXECs be run ? or does it depend whatever the FILE notifies the
EXEC?

please bare in mind. I'm a 'new' puppet user, thanks


-- 
-ls

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.