windowsrefund
2008-Aug-13 03:43 UTC
[Puppet Users] ensure => running not working on puppet service
Client and server are 0.24.5 Suddenly, this is not working: service { "puppet": ensure => running, enable => true, hasstatus => true, status => "/etc/init.d/puppet status", require => [ Package[facter], Package[puppet] ], } The client just skips right over it like it doesn''t even exist --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Helmut Lichtenberg
2008-Aug-13 06:07 UTC
[Puppet Users] Re: ensure => running not working on puppet service
windowsrefund schrieb am 13. Aug 2008 um 05:43:19 CEST:> Client and server are 0.24.5 > Suddenly, this is not working: > service { "puppet": > ensure => running, > enable => true, > hasstatus => true, > status => "/etc/init.d/puppet status", > require => [ Package[facter], Package[puppet] ], > } > > The client just skips right over it like it doesn''t even existWhen puppetd isn''t running, it can''t make itself run. I tried the same with puppetd and puppetmaster. :^) Helmut --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ohad Levy
2008-Aug-13 06:16 UTC
[Puppet Users] Re: ensure => running not working on puppet service
On Wed, Aug 13, 2008 at 2:07 PM, Helmut Lichtenberg < Helmut.Lichtenberg@fli.bund.de> wrote:> > windowsrefund schrieb am 13. Aug 2008 um 05:43:19 CEST: > > Client and server are 0.24.5 > > Suddenly, this is not working: > > service { "puppet": > > ensure => running, > > enable => true, > > hasstatus => true, > > status => "/etc/init.d/puppet status", > > require => [ Package[facter], Package[puppet] ], > > } > > > > The client just skips right over it like it doesn''t even exist > > When puppetd isn''t running, it can''t make itself run. > I tried the same with puppetd and puppetmaster. :^) >Puppetmaster works, puppetd doesnt... Ohad --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Helmut Lichtenberg
2008-Aug-13 06:49 UTC
[Puppet Users] Re: ensure => running not working on puppet service
Ohad Levy schrieb am 13. Aug 2008 um 08:16:25 CEST:> On Wed, Aug 13, 2008 at 2:07 PM, Helmut Lichtenberg wrote: > Puppetmaster works, puppetd doesnt...How can puppetd run and check, if puppetmaster (on the same machine) is running, if puppetmaster is dead? No puppetmaster, no puppetd -- or? Helmut --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
scott smith
2008-Aug-13 06:53 UTC
[Puppet Users] Re: ensure => running not working on puppet service
Helmut Lichtenberg wrote:> Ohad Levy schrieb am 13. Aug 2008 um 08:16:25 CEST: >> On Wed, Aug 13, 2008 at 2:07 PM, Helmut Lichtenberg wrote: >> Puppetmaster works, puppetd doesnt... > > How can puppetd run and check, if puppetmaster (on the same machine) is > running, if puppetmaster is dead? No puppetmaster, no puppetd -- or? >Puppetd stores a cached copy of the last working catalog --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Helmut Lichtenberg
2008-Aug-13 07:00 UTC
[Puppet Users] Re: ensure => running not working on puppet service
scott smith schrieb am 13. Aug 2008 um 08:53:31 CEST:> > Helmut Lichtenberg wrote: > > Ohad Levy schrieb am 13. Aug 2008 um 08:16:25 CEST: > >> On Wed, Aug 13, 2008 at 2:07 PM, Helmut Lichtenberg wrote: > >> Puppetmaster works, puppetd doesnt... > > > > How can puppetd run and check, if puppetmaster (on the same machine) is > > running, if puppetmaster is dead? No puppetmaster, no puppetd -- or? > > > > Puppetd stores a cached copy of the last working catalogAh, then I will try it again. Maybe it didn''t work for me as I tried it with puppetd --test, which skips the cache. Thanks. Helmut --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mike Renfro
2008-Aug-13 12:41 UTC
[Puppet Users] Re: ensure => running not working on puppet service
On 8/12/2008 10:43 PM, windowsrefund wrote:> Client and server are 0.24.5 > > Suddenly, this is not working: > > service { "puppet": > ensure => running, > enable => true, > hasstatus => true, > status => "/etc/init.d/puppet status", > require => [ Package[facter], Package[puppet] ], > } > > The client just skips right over it like it doesn''t even existI ensure puppet is running by: 1. ensuring the cron service is alive 2. putting an hourly cron job in that restarts puppetd if it''s died. Documented at http://reductivelabs.com/trac/puppet/wiki/Recipes/MutualRestart -- the shell code for the cron job is from Debian, but may work as-is on other distributions, and is certainly simple enough to adapt to other OSes. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-Aug-16 22:06 UTC
[Puppet Users] Re: ensure => running not working on puppet service
On Aug 12, 2008, at 10:43 PM, windowsrefund wrote:> > Client and server are 0.24.5 > > Suddenly, this is not working: > > service { "puppet": > ensure => running, > enable => true, > hasstatus => true, > status => "/etc/init.d/puppet status", > require => [ Package[facter], Package[puppet] ], > } > > The client just skips right over it like it doesn''t even existMy guess is that your init script is concluding that puppetd is running since, well, puppetd is running if this code is being checked. Right? How could this code ever run if puppetd isn''t running? Maybe you need to differentiate between --test mode and long-term mode? -- True Terror is to wake up one morning and discover that your high school class is running the country. -- Kurt Vonnegut --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---