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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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 <silviu@paragina.ro> 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-users@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@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-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thanks Bruce! On Sun, Sep 26, 2010 at 9:11 AM, Bruce Richardson <itsbruce@workshy.org>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-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.