Brian Gupta
2008-Aug-20 05:04 UTC
[Puppet Users] What are people doing to restart puppetd when puppet or facter gems are updated?
Two options I can see right off are: 1) Run puppet from cron, making restart a non-issue 2) Use a tool like capistrano to hit all your nodes. (Or all old school ssh loop). I don''t really like either option. Thanks, Brian P.S. - I can get puppet to upgrade the gems it''s just the puppetd restart that I need to figure out. -- - Brian Gupta http://opensolaris.org/os/project/nycosug/ http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
RijilV
2008-Aug-20 05:11 UTC
[Puppet Users] Re: What are people doing to restart puppetd when puppet or facter gems are updated?
Wouldn''t the following just work? package { [ "facter", "puppet"]: provider => gems, ensure => latest, notify => Service["puppet"], } service { "puppet": ensure => running, } 2008/8/19 Brian Gupta <brian.gupta@gmail.com>:> > Two options I can see right off are: > 1) Run puppet from cron, making restart a non-issue > 2) Use a tool like capistrano to hit all your nodes. (Or all old > school ssh loop). > > I don''t really like either option. > > Thanks, > Brian > > P.S. - I can get puppet to upgrade the gems it''s just the puppetd > restart that I need to figure out. > > -- > - Brian Gupta > > http://opensolaris.org/os/project/nycosug/ > > http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brian Gupta
2008-Aug-20 05:18 UTC
[Puppet Users] Re: What are people doing to restart puppetd when puppet or facter gems are updated?
The problem is that puppetd doesn''t stop running, it just runs on an old cached config, and won''t download the new changes in the new config. What we were thinking about doing is pushing out a version file in site.pp and checking to see if that gets updated. (Although "puppetd --test" may be the way to go. I need to verify later this afternoon). -Brian On Wed, Aug 20, 2008 at 1:11 AM, RijilV <rijilv@gmail.com> wrote:> > Wouldn''t the following just work? > > > package { [ "facter", "puppet"]: > provider => gems, > ensure => latest, > notify => Service["puppet"], > } > > service { "puppet": > ensure => running, > } > > > > > 2008/8/19 Brian Gupta <brian.gupta@gmail.com>: >> >> Two options I can see right off are: >> 1) Run puppet from cron, making restart a non-issue >> 2) Use a tool like capistrano to hit all your nodes. (Or all old >> school ssh loop). >> >> I don''t really like either option. >> >> Thanks, >> Brian >> >> P.S. - I can get puppet to upgrade the gems it''s just the puppetd >> restart that I need to figure out. >> >> -- >> - Brian Gupta >> >> http://opensolaris.org/os/project/nycosug/ >> >> http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ >> >> > >> > > > >-- - Brian Gupta http://opensolaris.org/os/project/nycosug/ http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brian Gupta
2008-Aug-20 05:21 UTC
[Puppet Users] Re: What are people doing to restart puppetd when puppet or facter gems are updated?
My apologies for the last email. I misread the subject. It should work. I will verify and post results. (I think though I might need to rename the service puppetd though). -Brian On Wed, Aug 20, 2008 at 1:11 AM, RijilV <rijilv@gmail.com> wrote:> > Wouldn''t the following just work? > > > package { [ "facter", "puppet"]: > provider => gems, > ensure => latest, > notify => Service["puppet"], > } > > service { "puppet": > ensure => running, > } > > > > > 2008/8/19 Brian Gupta <brian.gupta@gmail.com>: >> >> Two options I can see right off are: >> 1) Run puppet from cron, making restart a non-issue >> 2) Use a tool like capistrano to hit all your nodes. (Or all old >> school ssh loop). >> >> I don''t really like either option. >> >> Thanks, >> Brian >> >> P.S. - I can get puppet to upgrade the gems it''s just the puppetd >> restart that I need to figure out. >> >> -- >> - Brian Gupta >> >> http://opensolaris.org/os/project/nycosug/ >> >> http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ >> >> > >> > > > >-- - Brian Gupta http://opensolaris.org/os/project/nycosug/ http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---