On Mon, Nov 2, 2009 at 9:49 PM, Digant C Kasundra <dig...@stanford.edu>wrote:
> > > ----- "Trevor Vaughan" <peiriann...@gmail.com> wrote: > > > All, > > > > I'm looking for a way to obtain information about the managed > > services > > on a given client system. > > > > Basically, some way to know what services have been enabled by Puppet > > from the client. > > > > I'm hoping to implement something like 'purge' for services such that > > any service that is not defined is disabled and turned off. > > > > Any ideas on how to do this would be welcome. > > If you want to know what services Puppet has managed on a client, you can > look at the yaml file, or you can use store configs and poke at the DB. The > problem with purging services is do you really want to define everything you > know to expect on a server in Puppet? > > You can use the "resources" resource type to enable purging of all unmanaged resources of a given type. This only works for resources that are purgeable. The host resource type is a good example. The service resource type could possibly be extended to support this but at present it does not support purging. -teyo -- Teyo Tyree :: www.reductivelabs.com :: +1.615.275.5066 --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---