Re: [Puppet Users] Software inventory

2011-09-21 Thread Glenn Bailey
>> Before I go about writing one myself, anyone out there written a >> software inventory module/fact for gathering a list of all installed >> rpms/debs on a system? Got a few ideas floating around in my head, but >> wanted to see if/what other folks have done .. > > We've written some custom facts

Re: [Puppet Users] Software inventory

2011-09-21 Thread Rich Rauenzahn
On Wed, Sep 21, 2011 at 9:45 AM, Glenn Bailey wrote: > Howdy, > > Before I go about writing one myself, anyone out there written a > software inventory module/fact for gathering a list of all installed > rpms/debs on a system? Got a few ideas floating around in my head, but > wanted to see if/what

Re: [Puppet Users] Software inventory

2011-09-21 Thread Ohad Levy
On Wed, Sep 21, 2011 at 7:45 PM, Glenn Bailey wrote: > Howdy, > > Before I go about writing one myself, anyone out there written a > software inventory module/fact for gathering a list of all installed > rpms/debs on a system? Got a few ideas floating around in my head, but > wanted to see if/what

Re: [Puppet Users] Software inventory

2011-09-21 Thread R.I.Pienaar
- Original Message - > its also pretty easy to programatically access the information, which > could make parsing it easier: > > >require 'puppet' > >Puppet::Type.type(:package).instances the puppetral mcollective agent does something similar in a generic fashion so you can just query t

Re: [Puppet Users] Software inventory

2011-09-21 Thread Dan Bode
its also pretty easy to programatically access the information, which could make parsing it easier: >require 'puppet' >Puppet::Type.type(:package).instances On Wed, Sep 21, 2011 at 10:53 AM, Glenn Bailey wrote: > >> Before I go about writing one myself, anyone out there written a > >> software i

Re: [Puppet Users] Software inventory

2011-09-21 Thread Glenn Bailey
>> Before I go about writing one myself, anyone out there written a >> software inventory module/fact for gathering a list of all installed >> rpms/debs on a system? Got a few ideas floating around in my head, but >> wanted to see if/what other folks have done .. > > you can already do this with: >

Re: [Puppet Users] Software inventory

2011-09-21 Thread Brian Gupta
Well, puppet does include a native facility for doing this... try running and see if the output meets your needs: "puppet resource package" I guess the question before extending this to a module, is what exactly do you want to do with the data? -Brian On Wed, Sep 21, 2011 at 12:45 PM, Glenn Bail

Re: [Puppet Users] Software inventory

2011-09-21 Thread Dan Bode
On Wed, Sep 21, 2011 at 9:45 AM, Glenn Bailey wrote: > Howdy, > > Before I go about writing one myself, anyone out there written a > software inventory module/fact for gathering a list of all installed > rpms/debs on a system? Got a few ideas floating around in my head, but > wanted to see if/what