Craig
2008-May-06 07:07 UTC
[Puppet Users] Removing node from puppet doesn''t remove it from Stored Config database
Hi, I have deleted ''nodes'' from manifest file, but this is not being reflected in the Stored Configuration database in Postgres - I can still see the host in the ''hosts'' table in Pupp. Is puppet meant to be automatically cleaning up the database? Regards, Craig --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
huangmingyou
2008-May-06 07:37 UTC
[Puppet Users] Re: Removing node from puppet doesn''t remove it from Stored Config database
I think puppet will not auto clean up it. may be you need write some simple shell script to do this. On May 6, 3:07 pm, Craig <cayli...@gmail.com> wrote:> Hi, > > I have deleted ''nodes'' from manifest file, but this is not being > reflected in the Stored Configuration database in Postgres - I can > still see the host in the ''hosts'' table in Pupp. > > Is puppet meant to be automatically cleaning up the database? > > Regards, > > Craig--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Blake Barnett
2008-May-06 08:20 UTC
[Puppet Users] Re: Removing node from puppet doesn''t remove it from Stored Config database
On May 6, 2008, at 12:07 AM, Craig wrote:> > Hi, > > I have deleted ''nodes'' from manifest file, but this is not being > reflected in the Stored Configuration database in Postgres - I can > still see the host in the ''hosts'' table in Pupp. > > Is puppet meant to be automatically cleaning up the database?It doesn''t automatically, no. There''s not really a great way of telling it that a node went away, because it only stores information when a client checks in. In the meantime here''s a script: http://pastie.org/192264 -Blake --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
James Turnbull
2008-May-06 11:13 UTC
[Puppet Users] Re: Removing node from puppet doesn''t remove it from Stored Config database
Blake Barnett wrote:> It doesn''t automatically, no. There''s not really a great way of > telling it that a node went away, because it only stores information > when a client checks in. In the meantime here''s a script: http://pastie.org/192264 > >Blake Hope you don''t mind but I added this script to the UsingStoredConfiguration page on the wiki. Cheers James Turnbull --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Craig
2008-May-07 00:03 UTC
[Puppet Users] Re: Removing node from puppet doesn''t remove it from Stored Config database
Hi, On May 6, 9:13 pm, James Turnbull <ja...@lovedthanlost.net> wrote:> Blake Barnett wrote: > > It doesn''t automatically, no. There''s not really a great way of > > telling it that a node went away, because it only stores information > > when a client checks in. In the meantime here''s a script: http://pastie.org/192264 > > Blake > > Hope you don''t mind but I added this script to the > UsingStoredConfiguration page on the wiki.Unfortunately I get the following error when running it. ./kill_node_in_storedconfigs_db.rb:10: undefined method `settings'' for Puppet:Module (NoMethodError) I don''t know much about Ruby so couldn''t figure out what the issue was. Note: Using Puppet version 0.23.2 Craig --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Blake Barnett
2008-May-07 00:06 UTC
[Puppet Users] Re: Removing node from puppet doesn''t remove it from Stored Config database
On May 6, 2008, at 5:03 PM, Craig wrote:> > Hi, > > > On May 6, 9:13 pm, James Turnbull <ja...@lovedthanlost.net> wrote: >> Blake Barnett wrote: >>> It doesn''t automatically, no. There''s not really a great way of >>> telling it that a node went away, because it only stores information >>> when a client checks in. In the meantime here''s a script: http://pastie.org/192264 >> >> Blake >> >> Hope you don''t mind but I added this script to the >> UsingStoredConfiguration page on the wiki. > > Unfortunately I get the following error when running it. > ./kill_node_in_storedconfigs_db.rb:10: undefined method > `settings'' for Puppet:Module (NoMethodError) > > I don''t know much about Ruby so couldn''t figure out what the issue > was. > > Note: Using Puppet version 0.23.2Ah, yeah, just change "settings" to "config", that was a 0.24.x change. -Blake --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---