Christopher McCrory
2010-Nov-15 14:09 UTC
[Puppet Users] proper way to purge DB data for retired hosts
Hello... I''ve been testing some new servers. I''m using exported resources for several configs (see other email on ssh_known_hosts), including the nagios tyoes (very cool!). Now I need to retire several test servers. How do I ''properly'' purge the exported data for these test servers from the mysql DB on the puppetmaster? /me not a SQL guru... -- Christopher McCrory To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the engineer, the glass is twice as big as it needs to be. -- 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.
donavan
2010-Nov-15 23:24 UTC
[Puppet Users] Re: proper way to purge DB data for retired hosts
On Nov 15, 7:09 am, Christopher McCrory <chris...@gmail.com> wrote:> Hello... > > I''ve been testing some new servers. I''m using exported resources for > several configs (see other email on ssh_known_hosts), including the > nagios tyoes (very cool!). Now I need to retire several test servers. > How do I ''properly'' purge the exported data for these test servers from > the mysql DB on the puppetmaster? > > /me not a SQL guru...Check out puppetstoredconfigclean.rb[1]. That will purge the complete record of each host from the storeconfig DB. [1] https://github.com/puppetlabs/puppet/blob/master/ext/puppetstoredconfigclean.rb -- 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.