I create this class pmaster in order to restart puppetmaster daemon after /etc/puppet/puppet.conf file change. class pmaster { file { "/etc/puppet/puppet.conf": ensure => "file"; } service { "puppetmaster": ensure => "running", enable => "true", hasrestart => "true", subscribe => File [ "/etc/puppet/puppet.conf" ] } BUT I have a lot of modules and files inside /etc/puppet folder. My question is: What if I want to restart puppetmaster daemon if any file inside /etc/ puppet change? regards, Israel. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Paul Lathrop
2009-Sep-01 17:31 UTC
[Puppet Users] Re: restart puppetmaster when files change
Why would you want to do this? puppetmaster will notice changes to these files without needing to be restarted. --Paul On Sun, Aug 30, 2009 at 11:34 AM, ELTigre<igalvarez@gmail.com> wrote:> > I create this class pmaster in order to restart puppetmaster daemon > after /etc/puppet/puppet.conf file change. > > class pmaster { > > file { "/etc/puppet/puppet.conf": > ensure => "file"; > } > > service { "puppetmaster": > ensure => "running", > enable => "true", > hasrestart => "true", > subscribe => File [ "/etc/puppet/puppet.conf" ] > } > > BUT I have a lot of modules and files inside /etc/puppet folder. > > My question is: > > What if I want to restart puppetmaster daemon if any file inside /etc/ > puppet change? > regards, > Israel. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Do you mean if any of init.pp files of any module change, puppetmaster gets the change and reload? regards, Israel. On Sep 1, 12:31 pm, Paul Lathrop <paul.lath...@gmail.com> wrote:> Why would you want to do this? puppetmaster will notice changes to > these files without needing to be restarted. > > --Paul > > On Sun, Aug 30, 2009 at 11:34 AM, ELTigre<igalva...@gmail.com> wrote: > > > I create this class pmaster in order to restart puppetmaster daemon > > after /etc/puppet/puppet.conf file change. > > > class pmaster { > > > file { "/etc/puppet/puppet.conf": > > ensure => "file"; > > } > > > service { "puppetmaster": > > ensure => "running", > > enable => "true", > > hasrestart => "true", > > subscribe => File [ "/etc/puppet/puppet.conf" ] > > } > > > BUT I have a lot of modules and files inside /etc/puppet folder. > > > My question is: > > > What if I want to restart puppetmaster daemon if any file inside /etc/ > > puppet change? > > regards, > > Israel.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Paul Lathrop
2009-Sep-03 17:14 UTC
[Puppet Users] Re: restart puppetmaster when files change
Yes. On Wed, Sep 2, 2009 at 6:51 PM, ELTigre<igalvarez@gmail.com> wrote:> > Do you mean if any of init.pp files of any module change, puppetmaster > gets the change and reload? > > regards, > Israel. > > On Sep 1, 12:31 pm, Paul Lathrop <paul.lath...@gmail.com> wrote: >> Why would you want to do this? puppetmaster will notice changes to >> these files without needing to be restarted. >> >> --Paul >> >> On Sun, Aug 30, 2009 at 11:34 AM, ELTigre<igalva...@gmail.com> wrote: >> >> > I create this class pmaster in order to restart puppetmaster daemon >> > after /etc/puppet/puppet.conf file change. >> >> > class pmaster { >> >> > file { "/etc/puppet/puppet.conf": >> > ensure => "file"; >> > } >> >> > service { "puppetmaster": >> > ensure => "running", >> > enable => "true", >> > hasrestart => "true", >> > subscribe => File [ "/etc/puppet/puppet.conf" ] >> > } >> >> > BUT I have a lot of modules and files inside /etc/puppet folder. >> >> > My question is: >> >> > What if I want to restart puppetmaster daemon if any file inside /etc/ >> > puppet change? >> > regards, >> > Israel. > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---