I have a script that does it.. Looks like the script is from James Turnbull and you can find it in the ext directory:
http://projects.reductivelabs.com/projects/puppet/repository/revisions/master/raw/ext/puppetstoredconfigclean.rb I also added a wrapper that removes the certificates form the puppetmaster server along with wiping the db entry. Hope that helps. -Jason On Thu, Aug 19, 2010 at 8:02 AM, Craig Dunn <li...@codenation.net> wrote: > > Hi, > > I have stored configs with a Postgresql back end - for some reason, one > host, and all it's associated resources, is duplicated. I haven't got a > clue how, but it's causing errors using exported resources. Is there a > safe way to remove a host from stored config? I note from > http://projects.reductivelabs.com/issues/1886 that it is a feature > request, and sadly the script provided there doesn't seem to support > postgresql. > > Any tips on getting rid of this, I'd rather not trawl through all the > tables removing references to that host_id. > > Cheers > 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-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.